rust/compiler/rustc_codegen_llvm
Matthias Krüger 8f39b86a6a
Rollup merge of #128679 - RalfJung:codegen-fn-attrs, r=nikic
codegen: better centralize function declaration attribute computation

For some reason, the codegen backend has two functions that compute which attributes a function declaration gets: `apply_attrs_llfn` and `attributes::from_fn_attrs`. They are called in different places, on entirely different layers of abstraction.

To me the code seems cleaner if we centralize this entirely in `apply_attrs_llfn`, so that's what this PR does.
2024-08-07 20:28:18 +02:00
..
src Rollup merge of #128679 - RalfJung:codegen-fn-attrs, r=nikic 2024-08-07 20:28:18 +02:00
Cargo.toml dedup object 2024-07-28 17:21:07 +03:00
messages.ftl Move mingw dlltool invocation to cg_ssa 2024-07-30 10:33:33 +00: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.