Struct rustc_mir::transform::check_consts::resolver::FlowSensitiveAnalysis[−][src]

pub(super) struct FlowSensitiveAnalysis<'a, 'mir, 'tcx, Q> {
    ccx: &'a ConstCx<'mir, 'tcx>,
    _qualif: PhantomData<Q>,
}
Expand description

The dataflow analysis used to propagate qualifs on arbitrary CFGs.

Fields

ccx: &'a ConstCx<'mir, 'tcx>_qualif: PhantomData<Q>

Implementations

impl<'a, 'mir, 'tcx, Q> FlowSensitiveAnalysis<'a, 'mir, 'tcx, Q> where
    Q: Qualif, 
[src]

pub(super) fn new(_: Q, ccx: &'a ConstCx<'mir, 'tcx>) -> Self[src]

fn transfer_function(
    &self,
    state: &'a mut BitSet<Local>
) -> TransferFunction<'a, 'mir, 'tcx, Q>
[src]

Trait Implementations

impl<Q, 'tcx> Analysis<'tcx> for FlowSensitiveAnalysis<'_, '_, 'tcx, Q> where
    Q: Qualif, 
[src]

fn apply_statement_effect(
    &self,
    state: &mut Self::Domain,
    statement: &Statement<'tcx>,
    location: Location
)
[src]

Updates the current dataflow state with the effect of evaluating a statement.

fn apply_terminator_effect(
    &self,
    state: &mut Self::Domain,
    terminator: &Terminator<'tcx>,
    location: Location
)
[src]

Updates the current dataflow state with the effect of evaluating a terminator. Read more

fn apply_call_return_effect(
    &self,
    state: &mut Self::Domain,
    block: BasicBlock,
    func: &Operand<'tcx>,
    args: &[Operand<'tcx>],
    return_place: Place<'tcx>
)
[src]

Updates the current dataflow state with the effect of a successful return from a Call terminator. Read more

fn apply_before_statement_effect(
    &self,
    _state: &mut Self::Domain,
    _statement: &Statement<'tcx>,
    _location: Location
)
[src]

Updates the current dataflow state with an effect that occurs immediately before the given statement. Read more

fn apply_before_terminator_effect(
    &self,
    _state: &mut Self::Domain,
    _terminator: &Terminator<'tcx>,
    _location: Location
)
[src]

Updates the current dataflow state with an effect that occurs immediately before the given terminator. Read more

fn apply_yield_resume_effect(
    &self,
    _state: &mut Self::Domain,
    _resume_block: BasicBlock,
    _resume_place: Place<'tcx>
)
[src]

Updates the current dataflow state with the effect of resuming from a Yield terminator. Read more

fn apply_switch_int_edge_effects(
    &self,
    _block: BasicBlock,
    _discr: &Operand<'tcx>,
    _apply_edge_effects: &mut impl SwitchIntEdgeEffects<Self::Domain>
)
[src]

Updates the current dataflow state with the effect of taking a particular branch in a SwitchInt terminator. Read more

fn into_engine<'mir>(
    self,
    tcx: TyCtxt<'tcx>,
    body: &'mir Body<'tcx>
) -> Engine<'mir, 'tcx, Self> where
    Self: Sized, 
[src]

Creates an Engine to find the fixpoint for this dataflow problem. Read more

impl<Q, 'tcx> AnalysisDomain<'tcx> for FlowSensitiveAnalysis<'_, '_, 'tcx, Q> where
    Q: Qualif, 
[src]

type Domain = BitSet<Local>

The type that holds the dataflow state at any given point in the program.

const NAME: &'static str[src]

A descriptive name for this analysis. Used only for debugging. Read more

fn bottom_value(&self, body: &Body<'tcx>) -> Self::Domain[src]

The initial value of the dataflow state upon entry to each basic block.

fn initialize_start_block(&self, _body: &Body<'tcx>, state: &mut Self::Domain)[src]

Mutates the initial value of the dataflow state upon entry to the START_BLOCK. Read more

type Direction: Direction = Forward

The direction of this analysis. Either Forward or Backward.

Auto Trait Implementations

impl<'a, 'mir, 'tcx, Q> !RefUnwindSafe for FlowSensitiveAnalysis<'a, 'mir, 'tcx, Q>

impl<'a, 'mir, 'tcx, Q> !Send for FlowSensitiveAnalysis<'a, 'mir, 'tcx, Q>

impl<'a, 'mir, 'tcx, Q> !Sync for FlowSensitiveAnalysis<'a, 'mir, 'tcx, Q>

impl<'a, 'mir, 'tcx, Q> Unpin for FlowSensitiveAnalysis<'a, 'mir, 'tcx, Q> where
    Q: Unpin,
    'mir: 'a,
    'tcx: 'a, 

impl<'a, 'mir, 'tcx, Q> !UnwindSafe for FlowSensitiveAnalysis<'a, 'mir, 'tcx, Q>

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.

impl<T> WithConstness for T[src]

fn with_constness(self, constness: Constness) -> ConstnessAnd<Self>[src]

fn with_const(self) -> ConstnessAnd<Self>[src]

fn without_const(self) -> ConstnessAnd<Self>[src]