pub struct Options { /* private fields */ }Expand description
Builder for pass manager options.
Controls debug logging, IR verification, and extension point pipeline
additions. Pass to ModulePassManager or FunctionPassManager
constructors via Option<&Options>.
Implementations§
Source§impl Options
impl Options
Sourcepub fn debug_logging(&mut self, val: bool) -> &mut Self
pub fn debug_logging(&mut self, val: bool) -> &mut Self
Enable or disable debug logging output during pass execution.
Sourcepub fn verify_each(&mut self, val: bool) -> &mut Self
pub fn verify_each(&mut self, val: bool) -> &mut Self
Enable or disable IR verification after each pass.
Sourcepub fn add_peephole_ep(&mut self, pipeline: &str) -> &mut Self
pub fn add_peephole_ep(&mut self, pipeline: &str) -> &mut Self
Add a pass pipeline at the peephole extension point (after instcombine, function-level).
Sourcepub fn add_optimizer_early_ep(&mut self, pipeline: &str) -> &mut Self
pub fn add_optimizer_early_ep(&mut self, pipeline: &str) -> &mut Self
Add a pass pipeline at the optimizer-early extension point (module-level).
Sourcepub fn add_optimizer_last_ep(&mut self, pipeline: &str) -> &mut Self
pub fn add_optimizer_last_ep(&mut self, pipeline: &str) -> &mut Self
Add a pass pipeline at the optimizer-last extension point (module-level).
Sourcepub fn add_vectorizer_start_ep(&mut self, pipeline: &str) -> &mut Self
pub fn add_vectorizer_start_ep(&mut self, pipeline: &str) -> &mut Self
Add a pass pipeline at the vectorizer-start extension point (function-level).
Sourcepub fn add_scalar_optimizer_late_ep(&mut self, pipeline: &str) -> &mut Self
pub fn add_scalar_optimizer_late_ep(&mut self, pipeline: &str) -> &mut Self
Add a pass pipeline at the scalar-optimizer-late extension point (function-level).
Sourcepub fn add_pipeline_start_ep(&mut self, pipeline: &str) -> &mut Self
pub fn add_pipeline_start_ep(&mut self, pipeline: &str) -> &mut Self
Add a pass pipeline at the pipeline-start extension point (module-level).
Sourcepub fn add_pipeline_early_simplification_ep(
&mut self,
pipeline: &str,
) -> &mut Self
pub fn add_pipeline_early_simplification_ep( &mut self, pipeline: &str, ) -> &mut Self
Add a pass pipeline at the pipeline-early-simplification extension point (module-level).