Files
rust/compiler/rustc_codegen_llvm
Jacob Pratt c50742ed14 Rollup merge of #158032 - Sa4dUs:offload-device-selection, r=ZuseZ4
Offload expose device selection

get amount of available devices with `omp_get_num_devices` and add arg to the intrinsic for device selection

r? @ZuseZ4
2026-08-20 21:34:27 -04: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.