rust/compiler/rustc_codegen_llvm
Matthias Krüger 508c382080
Rollup merge of #149788 - Sa4dUs:offload-cleanup, r=ZuseZ4
Move shared offload globals and define per-kernel globals once

This PR moves the shared LLVM global variables logic out of the `offload` intrinsic codegen and generates kernel-specific variables only ont he first call of the intrinsic.

r? `@ZuseZ4`

tracking:
- https://github.com/rust-lang/rust/issues/131513
2025-12-19 23:38:57 +01:00
..
src Rollup merge of #149788 - Sa4dUs:offload-cleanup, r=ZuseZ4 2025-12-19 23:38:57 +01:00
Cargo.toml add trailing line at compiler/rustc_codegen_llvm/Cargo.toml 2025-12-16 00:32:26 +09:00
messages.ftl Emit a proper error if we fail to find libEnzyme 2025-12-16 21:33:28 +01:00
README.md mv compiler to compiler/ 2020-08-30 18:45:07 +03: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.