@@ -6,8 +6,9 @@ use crate::rustc_smir::{Stable, Tables};
6
6
use rustc_middle:: ty;
7
7
use rustc_target:: abi:: call:: Conv ;
8
8
use stable_mir:: abi:: {
9
- AddressSpace , ArgAbi , CallConvention , FieldsShape , FnAbi , IntegerLength , Layout , LayoutShape ,
10
- PassMode , Primitive , Scalar , TagEncoding , TyAndLayout , ValueAbi , VariantsShape , WrappingRange ,
9
+ AddressSpace , ArgAbi , CallConvention , FieldsShape , FloatLength , FnAbi , IntegerLength , Layout ,
10
+ LayoutShape , PassMode , Primitive , Scalar , TagEncoding , TyAndLayout , ValueAbi , VariantsShape ,
11
+ WrappingRange ,
11
12
} ;
12
13
use stable_mir:: opaque;
13
14
use stable_mir:: target:: MachineSize as Size ;
@@ -255,8 +256,10 @@ impl<'tcx> Stable<'tcx> for rustc_abi::Primitive {
255
256
rustc_abi:: Primitive :: Int ( length, signed) => {
256
257
Primitive :: Int { length : length. stable ( tables) , signed : * signed }
257
258
}
258
- rustc_abi:: Primitive :: F32 => Primitive :: F32 ,
259
- rustc_abi:: Primitive :: F64 => Primitive :: F64 ,
259
+ rustc_abi:: Primitive :: F16 => Primitive :: Float { length : FloatLength :: F16 } ,
260
+ rustc_abi:: Primitive :: F32 => Primitive :: Float { length : FloatLength :: F32 } ,
261
+ rustc_abi:: Primitive :: F64 => Primitive :: Float { length : FloatLength :: F64 } ,
262
+ rustc_abi:: Primitive :: F128 => Primitive :: Float { length : FloatLength :: F128 } ,
260
263
rustc_abi:: Primitive :: Pointer ( space) => Primitive :: Pointer ( space. stable ( tables) ) ,
261
264
}
262
265
}
0 commit comments