about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/llvm_util.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-06-15 14:40:48 +0200
committerGitHub <noreply@github.com>2024-06-15 14:40:48 +0200
commitdad74aa67c349b27468c4d1da93500175a105835 (patch)
treef2a2228c71157001862cbd1416d7862414383f13 /compiler/rustc_codegen_llvm/src/llvm_util.rs
parent5fac57284e95818a7dabe9bc325847d1bdb8f2ae (diff)
parentc8c6598f17128b3ac1ec3573dc54876d24cc7a77 (diff)
downloadrust-dad74aa67c349b27468c4d1da93500175a105835.tar.gz
rust-dad74aa67c349b27468c4d1da93500175a105835.zip
Rollup merge of #126361 - celinval:issue-0079-intrinsic, r=oli-obk
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 a backend 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, we unify the interface for intrinsics marked with `rustc_intrinsic_must_be_overridden` and intrinsics that do not have a body.

Fixes https://github.com/rust-lang/project-stable-mir/issues/79

r? ``@oli-obk``

cc: ``@momvart``
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions