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).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl !Send for Options
impl !Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more