rust/src/librustc_codegen_llvm
Alex Crichton e983b4f64e rustc: Implement incremental "fat" LTO
Currently the compiler will produce an error if both incremental
compilation and full fat LTO is requested. With recent changes and the
advent of incremental ThinLTO, however, all the hard work is already
done for us and it's actually not too bad to remove this error!

This commit updates the codegen backend to allow incremental full fat
LTO. The semantics are that the input modules to LTO are all produce
incrementally, but the final LTO step is always done unconditionally
regardless of whether the inputs changed or not. The only real
incremental win we could have here is if zero of the input modules
changed, but that's so rare it's unlikely to be worthwhile to implement
such a code path.

cc #57968
cc rust-lang/cargo#6643
2019-02-12 04:58:31 -08:00
..
back rustc: Implement incremental "fat" LTO 2019-02-12 04:58:31 -08:00
debuginfo Set the DICompileUnit emissionKind 2019-01-25 15:39:54 -08:00
llvm rustc: Implement incremental "fat" LTO 2019-02-12 04:58:31 -08:00
abi.rs Remove licenses 2018-12-25 21:08:33 -07:00
allocator.rs Remove licenses 2018-12-25 21:08:33 -07:00
asm.rs Remove licenses 2018-12-25 21:08:33 -07:00
attributes.rs Resolve breakage 2019-01-25 19:20:38 +02:00
base.rs Add a query type which is always marked as red if it runs 2019-02-08 04:28:32 +01:00
build.rs Remove licenses 2018-12-25 21:08:33 -07:00
builder.rs Remove licenses 2018-12-25 21:08:33 -07:00
callee.rs Remove licenses 2018-12-25 21:08:33 -07:00
Cargo.toml Add rustc_codegen_ssa to sysroot 2018-11-22 20:20:23 +01:00
common.rs Remove licenses 2018-12-25 21:08:33 -07:00
consts.rs Remove licenses 2018-12-25 21:08:33 -07:00
context.rs Use LLVM intrinsics for saturating add/sub 2019-01-29 22:32:13 +01:00
declare.rs Resolve breakage 2019-01-25 19:20:38 +02:00
diagnostics.rs Remove licenses 2018-12-25 21:08:33 -07:00
intrinsic.rs Use LLVM intrinsics for saturating add/sub 2019-01-29 22:32:13 +01:00
lib.rs rustc: Implement incremental "fat" LTO 2019-02-12 04:58:31 -08:00
llvm_util.rs Add MOVBE feature 2019-01-30 21:07:48 +05:30
metadata.rs Remove licenses 2018-12-25 21:08:33 -07:00
mono_item.rs Remove licenses 2018-12-25 21:08:33 -07:00
README.md rustc-guide has moved 2018-11-26 15:03:13 -06:00
type_.rs Use ptr::eq where applicable 2019-01-12 16:18:55 +01:00
type_of.rs Don't ICE when logging unusual types 2019-01-23 16:32:59 -05:00
va_arg.rs Remove licenses 2018-12-25 21:08:33 -07:00
value.rs Use ptr::eq where applicable 2019-01-12 16:18:55 +01: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 guide.