Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unify intrinsics body handling in StableMIR #126361

Merged
merged 1 commit into from
Jun 15, 2024

Commits on Jun 12, 2024

  1. Unify intrinsics body handling in StableMIR

    rust-lang#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.
    celinval committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    c8c6598 View commit details
    Browse the repository at this point in the history