Files
rust/compiler/rustc_codegen_llvm
Jacob Pratt aea48c1edf Rollup merge of #160594 - folkertdev:asm-forward-target-features, r=nikic
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?
2026-08-29 01:18:51 -04:00
..
2026-08-21 10:33:58 +02:00
…

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.