about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorCelina G. Val <celinval@amazon.com>2024-06-12 16:01:38 -0700
committerCelina G. Val <celinval@amazon.com>2024-06-12 16:01:38 -0700
commitc8c6598f17128b3ac1ec3573dc54876d24cc7a77 (patch)
treededec8dd7b91118a41398e9cffd6469a62f34528 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent0285dab54f87120367f5693174136aff24b74640 (diff)
downloadrust-c8c6598f17128b3ac1ec3573dc54876d24cc7a77.tar.gz
rust-c8c6598f17128b3ac1ec3573dc54876d24cc7a77.zip
Unify intrinsics body handling in StableMIR
rust-lang/rust#120675 introduced a new mechanism to declare intrinsics
which will potentially replace the rust-intrinsic ABI.

The new mechanism introduces a placeholder body and mark the intrinsic
with #[rustc_intrinsic_must_be_overridden].
In practice, this means that backends should not generate code for the
placeholder, and shim the intrinsic.
The new annotation is an internal compiler implementation,
and it doesn't need to be exposed to StableMIR users.

In this PR, intrinsics marked with `rustc_intrinsic_must_be_overridden`
are handled the same way as intrinsics that do not have a body.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions