@@ -5,7 +5,7 @@ use rustc_target::spec::abi::Abi;
55
66use crate :: * ;
77use helpers:: bool_to_simd_element;
8- use shims:: foreign_items:: EmulateByNameResult ;
8+ use shims:: foreign_items:: EmulateForeignItemResult ;
99
1010mod sse;
1111mod sse2;
@@ -22,7 +22,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
2222 abi : Abi ,
2323 args : & [ OpTy < ' tcx , Provenance > ] ,
2424 dest : & PlaceTy < ' tcx , Provenance > ,
25- ) -> InterpResult < ' tcx , EmulateByNameResult < ' mir , ' tcx > > {
25+ ) -> InterpResult < ' tcx , EmulateForeignItemResult > {
2626 let this = self . eval_context_mut ( ) ;
2727 // Prefix should have already been checked.
2828 let unprefixed_name = link_name. as_str ( ) . strip_prefix ( "llvm.x86." ) . unwrap ( ) ;
@@ -34,7 +34,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
3434 // https://www.intel.com/content/www/us/en/docs/cpp-compiler/developer-guide-reference/2021-8/addcarry-u32-addcarry-u64.html
3535 "addcarry.32" | "addcarry.64" => {
3636 if unprefixed_name == "addcarry.64" && this. tcx . sess . target . arch != "x86_64" {
37- return Ok ( EmulateByNameResult :: NotSupported ) ;
37+ return Ok ( EmulateForeignItemResult :: NotSupported ) ;
3838 }
3939
4040 let [ c_in, a, b] = this. check_shim ( abi, Abi :: Unadjusted , link_name, args) ?;
@@ -60,7 +60,7 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
6060 // https://www.intel.com/content/www/us/en/docs/cpp-compiler/developer-guide-reference/2021-8/subborrow-u32-subborrow-u64.html
6161 "subborrow.32" | "subborrow.64" => {
6262 if unprefixed_name == "subborrow.64" && this. tcx . sess . target . arch != "x86_64" {
63- return Ok ( EmulateByNameResult :: NotSupported ) ;
63+ return Ok ( EmulateForeignItemResult :: NotSupported ) ;
6464 }
6565
6666 let [ b_in, a, b] = this. check_shim ( abi, Abi :: Unadjusted , link_name, args) ?;
@@ -100,9 +100,9 @@ pub(super) trait EvalContextExt<'mir, 'tcx: 'mir>:
100100 this, link_name, abi, args, dest,
101101 ) ;
102102 }
103- _ => return Ok ( EmulateByNameResult :: NotSupported ) ,
103+ _ => return Ok ( EmulateForeignItemResult :: NotSupported ) ,
104104 }
105- Ok ( EmulateByNameResult :: NeedsJumping )
105+ Ok ( EmulateForeignItemResult :: NeedsJumping )
106106 }
107107}
108108
0 commit comments