Skip to content

Commit

Permalink
Rollup merge of #126361 - celinval:issue-0079-intrinsic, r=oli-obk
Browse files Browse the repository at this point in the history
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 rust-lang/project-stable-mir#79

r? ``@oli-obk``

cc: ``@momvart``
  • Loading branch information
matthiaskrgr committed Jun 15, 2024
2 parents d569db1 + ad2ee71 commit cbfed97
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit cbfed97

Please sign in to comment.