Struct melior_next::pass::Manager
source · pub struct Manager<'c> { /* private fields */ }
Expand description
A pass manager.
Implementations§
source§impl<'c> Manager<'c>
impl<'c> Manager<'c>
sourcepub fn nested_under(&self, name: &str) -> OperationManager<'_>
pub fn nested_under(&self, name: &str) -> OperationManager<'_>
Gets an operation pass manager for nested operations corresponding to a given name.
sourcepub fn enable_verifier(&self, enabled: bool)
pub fn enable_verifier(&self, enabled: bool)
Enables a verifier.
sourcepub fn enable_ir_printing(&self)
pub fn enable_ir_printing(&self)
Enables IR printing.
sourcepub fn run(&self, module: &mut Module<'_>) -> Result<(), Error>
pub fn run(&self, module: &mut Module<'_>) -> Result<(), Error>
Runs passes added to a pass manager against a module.
sourcepub fn as_operation_pass_manager(&self) -> OperationManager<'_>
pub fn as_operation_pass_manager(&self) -> OperationManager<'_>
Converts a pass manager to an operation pass manager.