pub struct PassManager { /* private fields */ }Expand description
Optimization pass manager
Implementations§
Source§impl PassManager
impl PassManager
pub fn new() -> Self
pub fn add_pass<P: OptimizationPass + 'static>(self, pass: P) -> Self
pub fn with_max_iterations(self, max: usize) -> Self
pub fn run( &mut self, cfg: &mut Cfg, instructions: &mut Vec<Instruction>, ) -> OptResult
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PassManager
impl !RefUnwindSafe for PassManager
impl !Send for PassManager
impl !Sync for PassManager
impl Unpin for PassManager
impl UnsafeUnpin for PassManager
impl !UnwindSafe for PassManager
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
Mutably borrows from an owned value. Read more