Struct rustc_utils::mir::place::SimplifyMir
source · pub struct SimplifyMir;
Expand description
MIR pass to remove instructions not important for Flowistry.
This pass helps reduce the number of intermediates during dataflow analysis, which reduces memory usage.
Trait Implementations§
source§impl<'tcx> MirPass<'tcx> for SimplifyMir
impl<'tcx> MirPass<'tcx> for SimplifyMir
fn run_pass(&self, _tcx: TyCtxt<'tcx>, body: &mut Body<'tcx>)
fn name(&self) -> &'static str
fn profiler_name(&self) -> &'static str
source§fn is_enabled(&self, _sess: &Session) -> bool
fn is_enabled(&self, _sess: &Session) -> bool
Returns
true
if this pass is enabled with the current combination of compiler flags.fn is_mir_dump_enabled(&self) -> bool
Auto Trait Implementations§
impl Freeze for SimplifyMir
impl RefUnwindSafe for SimplifyMir
impl Send for SimplifyMir
impl Sync for SimplifyMir
impl Unpin for SimplifyMir
impl UnwindSafe for SimplifyMir
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