mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-05 01:24:03 +00:00
attach global target features to module-level assembly fixes https://github.com/rust-lang/rust/issues/80608 fixes https://github.com/rust-lang/rust/issues/127269 At long last, we can forward global target features to LLVM and it will preserve the target features a block of module-level assembly was defined with through LTO. cc @nikic (who made this happen) cc @RalfJung any nasty side-effects we might be overlooking here?
The codegen crate contains the code to convert from MIR into LLVM IR,
and then from LLVM IR into machine code. In general it contains code
that runs towards the end of the compilation process.
For more information about how codegen works, see the rustc dev guide.