Skip to content

Commit d88ab22

Browse files
committed
fix: add RiscvInterrupt* cconv to smir
These new interrupt calling conventions are not themselves stabilized, but there are other unstable calling conventions present in the SMIR mapping (e.g. AVR interrupts) and the mapping appears to be "complete" so far, with no obvious way to represent unstable conventions separately from the stable ones.
1 parent 897c7bb commit d88ab22

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

compiler/rustc_smir/src/rustc_smir/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -877,6 +877,8 @@ impl<'tcx> Stable<'tcx> for ty::FnSig<'tcx> {
877877
abi::Abi::PlatformIntrinsic => Abi::PlatformIntrinsic,
878878
abi::Abi::Unadjusted => Abi::Unadjusted,
879879
abi::Abi::RustCold => Abi::RustCold,
880+
abi::Abi::RiscvInterruptM => Abi::RiscvInterruptM,
881+
abi::Abi::RiscvInterruptS => Abi::RiscvInterruptS,
880882
},
881883
}
882884
}

compiler/rustc_smir/src/stable_mir/ty.rs

+2
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,8 @@ pub enum Abi {
178178
PlatformIntrinsic,
179179
Unadjusted,
180180
RustCold,
181+
RiscvInterruptM,
182+
RiscvInterruptS,
181183
}
182184

183185
#[derive(Clone, Debug)]

0 commit comments

Comments
 (0)