[−][src]Struct rustc_mir::transform::instcombine::OptimizationFinder

pub(in transform::instcombine) struct OptimizationFinder<'b, 'tcx> {
    body: &'b Body<'tcx>,
    tcx: TyCtxt<'tcx>,
    optimizations: OptimizationList<'tcx>,
}

Finds optimization opportunities on the MIR.

Fields

body: &'b Body<'tcx>tcx: TyCtxt<'tcx>optimizations: OptimizationList<'tcx>

Implementations

impl<'b, 'tcx> OptimizationFinder<'b, 'tcx>[src]

pub(in transform::instcombine) fn new(
    body: &'b Body<'tcx>,
    tcx: TyCtxt<'tcx>
) -> OptimizationFinder<'b, 'tcx>
[src]

pub(in transform::instcombine) fn find_deref_of_address(
    &mut self,
    rvalue: &Rvalue<'tcx>,
    location: Location
) -> Option<()>
[src]

pub(in transform::instcombine) fn find_unneeded_equality_comparison(
    &mut self,
    rvalue: &Rvalue<'tcx>,
    location: Location
)
[src]

pub(in transform::instcombine) fn find_operand_in_equality_comparison_pattern<'a>(
    &self,
    l: &Operand<'tcx>,
    r: &'a Operand<'tcx>,
    const_to_find: bool
) -> Option<&'a Operand<'tcx>>
[src]

Trait Implementations

impl<'tcx, 'b> Visitor<'tcx> for OptimizationFinder<'b, 'tcx>[src]

Auto Trait Implementations

impl<'b, 'tcx> !RefUnwindSafe for OptimizationFinder<'b, 'tcx>

impl<'b, 'tcx> !Send for OptimizationFinder<'b, 'tcx>

impl<'b, 'tcx> !Sync for OptimizationFinder<'b, 'tcx>

impl<'b, 'tcx> Unpin for OptimizationFinder<'b, 'tcx> where
    'tcx: 'b, 

impl<'b, 'tcx> !UnwindSafe for OptimizationFinder<'b, 'tcx>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]