Introduce InstanceKind::LlvmIntrinsic#159183
Conversation
|
cc @rust-lang/miri Some changes occurred to MIR optimizations cc @rust-lang/wg-mir-opt Some changes occurred to the CTFE / Miri interpreter cc @rust-lang/miri Some changes occurred to the CTFE machinery This PR changes rustc_public |
|
r? @folkertdev rustbot has assigned @folkertdev. Use Why was this reviewer chosen?The reviewer was selected based on:
|
e14ca78 to
b7990f6
Compare
| this, link_name, args, &dest, | ||
| ), | ||
| _ => interp_ok(EmulateItemResult::NotSupported), | ||
| }; |
There was a problem hiding this comment.
@RalfJung would you prefer if this match was a method in shims/mod.rs?
There was a problem hiding this comment.
Eventually, all the LLVM shims should be moved to intrinsics.
Up to you if you want to do that in this PR. But if you don't, then please leave the logic entirely inside shims rather than splitting it between shims and intrinsics.
There was a problem hiding this comment.
I've moved it back to shims for now with a FIXME to move it to intrinsics.
This comment has been minimized.
This comment has been minimized.
b7990f6 to
caeec62
Compare
This comment has been minimized.
This comment has been minimized.
caeec62 to
1f3938a
Compare
This comment has been minimized.
This comment has been minimized.
1f3938a to
a06a06e
Compare
This comment has been minimized.
This comment has been minimized.
a06a06e to
cb285fe
Compare
This comment has been minimized.
This comment has been minimized.
cb285fe to
04d1d47
Compare
| this, link_name, args, &dest, | ||
| ), | ||
| _ => interp_ok(EmulateItemResult::NotSupported), | ||
| }; |
There was a problem hiding this comment.
Eventually, all the LLVM shims should be moved to intrinsics.
Up to you if you want to do that in this PR. But if you don't, then please leave the logic entirely inside shims rather than splitting it between shims and intrinsics.
dac9874 to
2354759
Compare
|
Oh wait nvm there was the |
|
Ok if I squash the first four commits? |
This way codegen backends don't have to check for a magic symbol name prefix to detect LLVM intrinsic calls and thus can more easily handle them separately as necessary.
0d67630 to
aec727f
Compare
View all comments
This way codegen backends don't have to check for a magic symbol name prefix to detect LLVM intrinsic calls and thus can more easily handle them separately as necessary.