rust/compiler/rustc_codegen_llvm
bors 6b78377245 Auto merge of #117123 - Zalathar:bad-counter-ids, r=petrochenkov
coverage: Consistently remove unused counter IDs from expressions/mappings

If some coverage counters were removed by MIR optimizations, we need to take care not to refer to those counter IDs in coverage mappings, and instead replace them with a constant zero value. If we don't, `llvm-cov` might see a too-large counter ID and silently discard the entire function from its coverage reports.

Fixes #117012.
2023-10-28 17:43:07 +00:00
..
src Auto merge of #117123 - Zalathar:bad-counter-ids, r=petrochenkov 2023-10-28 17:43:07 +00:00
Cargo.toml coverage: Build the global file table ahead of time 2023-10-22 20:37:37 +11:00
messages.ftl allow LTO on proc-macro crates with -Zdylib-lto 2023-09-23 17:08:43 +03: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.