llvm_optimize in rustc_codegen_llvm::back::write - Rust
Description: API documentation for the Rust `llvm_optimize` fn in crate `rustc_codegen_llvm`.

Skip to main content

## llvm_optimize

# Function llvm_optimize

Source

    pub(crate) unsafe fn llvm_optimize(
        cgcx: &CodegenContext,
        prof: &SelfProfilerRef,
        dcx: DiagCtxtHandle<'_>,
        module: &ModuleCodegen<ModuleLlvm>,
        thin_lto_buffer: Option<&mut Option<Buffer>>,
        thin_lto_summary_buffer: Option<&mut Option<Buffer>>,
        config: &ModuleConfig,
        opt_level: OptLevel,
        opt_stage: OptStage,
        autodiff_stage: AutodiffStage,
    )