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,
    )