pub(crate) fn create_pass_manager(
    module: &Module,
    optimization_lvl: OptimizationLevel,
) -> PassManager<FunctionValue> {
    let pass_builder = PassManagerBuilder::create();
    pass_builder.set_optimization_level(optimization_lvl);

    let function_pass_manager = PassManager::create(module);
    pass_builder.populate_function_pass_manager(&function_pass_manager);
    function_pass_manager.initialize();

    function_pass_manager
}
/// Constructs a PassManager to optimize functions for the given optimization level.
Constructs a PassManager to optimize functions for the given optimization level.
Constructs a PassManager to optimize functions for the given optimization level .
pub(crate) fn create_pass_manager(
    module: &Module,
    optimization_lvl: OptimizationLevel,
) -> PassManager<FunctionValue> {
    let pass_builder = PassManagerBuilder::create();
    pass_builder.set_optimization_level(optimization_lvl);
    let function_pass_manager = PassManager::create(module);
    pass_builder.populate_function_pass_manager(&function_pass_manager);
    function_pass_manager.initialize();
    function_pass_manager
}
pub ( crate ) fn create_pass_manager ( module : & Module , optimization_lvl : OptimizationLevel , ) -> PassManager < FunctionValue > { let pass_builder = PassManagerBuilder :: create ( ) ; pass_builder . set_optimization_level ( optimization_lvl ) ; let function_pass_manager = PassManager :: create ( module ) ; pass_builder . populate_function_pass_manager ( & function_pass_manager ) ; function_pass_manager . initialize ( ) ; function_pass_manager }
Constructs a PassManager to optimize functions for the given optimization level.
Constructs a PassManager to optimize functions for the given optimization level .
module
&Module
optimization_lvl
OptimizationLevel
module
&Module
optimization_lvl
OptimizationLevel