pub struct UnreachableCodeEliminationPass {
pub eliminated: u32,
}Expand description
Eliminates code after Unreachable terminators.
Fields§
§eliminated: u32Implementations§
Source§impl UnreachableCodeEliminationPass
impl UnreachableCodeEliminationPass
pub fn new() -> Self
pub fn run(&mut self, decls: &mut [LcnfFunDecl])
Trait Implementations§
Source§impl OptPass for UnreachableCodeEliminationPass
impl OptPass for UnreachableCodeEliminationPass
Source§fn run_pass(&mut self, decls: &mut [LcnfFunDecl]) -> usize
fn run_pass(&mut self, decls: &mut [LcnfFunDecl]) -> usize
Run the pass on a set of declarations, returning the number of changes made.
Source§fn is_enabled(&self) -> bool
fn is_enabled(&self) -> bool
Whether this pass is enabled.
Source§fn dependencies(&self) -> Vec<&str>
fn dependencies(&self) -> Vec<&str>
Dependencies: names of passes that must run before this one.
Auto Trait Implementations§
impl Freeze for UnreachableCodeEliminationPass
impl RefUnwindSafe for UnreachableCodeEliminationPass
impl Send for UnreachableCodeEliminationPass
impl Sync for UnreachableCodeEliminationPass
impl Unpin for UnreachableCodeEliminationPass
impl UnsafeUnpin for UnreachableCodeEliminationPass
impl UnwindSafe for UnreachableCodeEliminationPass
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