@@ -6,8 +6,9 @@ use crate::rustc_smir::{Stable, Tables};
66use rustc_middle:: ty;
77use rustc_target:: abi:: call:: Conv ;
88use 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 ,
1112} ;
1213use stable_mir:: opaque;
1314use stable_mir:: target:: MachineSize as Size ;
@@ -255,8 +256,10 @@ impl<'tcx> Stable<'tcx> for rustc_abi::Primitive {
255256 rustc_abi:: Primitive :: Int ( length, signed) => {
256257 Primitive :: Int { length : length. stable ( tables) , signed : * signed }
257258 }
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 } ,
260263 rustc_abi:: Primitive :: Pointer ( space) => Primitive :: Pointer ( space. stable ( tables) ) ,
261264 }
262265 }
0 commit comments