rust/compiler/rustc_codegen_llvm
Miguel Ojeda 2d476222e8 Add -Zfunction-return={keep,thunk-extern} option
This is intended to be used for Linux kernel RETHUNK builds.

With this commit (optionally backported to Rust 1.73.0), plus a
patched Linux kernel to pass the flag, I get a RETHUNK build with
Rust enabled that is `objtool`-warning-free and is able to boot in
QEMU and load a sample Rust kernel module.

Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
2023-11-30 20:21:31 +01:00
..
src Add -Zfunction-return={keep,thunk-extern} option 2023-11-30 20:21:31 +01:00
Cargo.toml Update itertools to 0.11. 2023-11-22 08:13:21 +11:00
messages.ftl warn when using an unstable feature with -Ctarget-feature 2023-11-06 09:44:00 +01:00
README.md

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.