[][src]Function rustc_codegen_llvm::back::lto::run

pub(crate) fn run(
    cgcx: &CodegenContext,
    modules: Vec<ModuleCodegen>,
    cached_modules: Vec<(SerializedModule, WorkProduct)>,
    timeline: &mut Timeline
) -> Result<(Vec<LtoModuleCodegen>, Vec<WorkProduct>), FatalError>
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Performs LTO, which in the case of full LTO means merging all modules into a single one and returning it for further optimizing. For ThinLTO, it will do the global analysis necessary and return two lists, one of the modules the need optimization and another for modules that can simply be copied over from the incr. comp. cache.