Struct rustc_const_eval::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
fn transfer_function(
&self,
state: &'a mut BitSet<Local>
) -> TransferFunction<'a, 'mir, 'tcx, Q>
Trait Implementations
fn apply_statement_effect(
&self,
state: &mut Self::Domain,
statement: &Statement<'tcx>,
location: Location
)
fn apply_statement_effect(
&self,
state: &mut Self::Domain,
statement: &Statement<'tcx>,
location: Location
)
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
)
fn apply_terminator_effect(
&self,
state: &mut Self::Domain,
terminator: &Terminator<'tcx>,
location: Location
)
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>
)
fn apply_call_return_effect(
&self,
state: &mut Self::Domain,
block: BasicBlock,
func: &Operand<'tcx>,
args: &[Operand<'tcx>],
return_place: Place<'tcx>
)
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
)
fn apply_before_statement_effect(
&self,
_state: &mut Self::Domain,
_statement: &Statement<'tcx>,
_location: Location
)
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
)
fn apply_before_terminator_effect(
&self,
_state: &mut Self::Domain,
_terminator: &Terminator<'tcx>,
_location: Location
)
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>
)
fn apply_yield_resume_effect(
&self,
_state: &mut Self::Domain,
_resume_block: BasicBlock,
_resume_place: Place<'tcx>
)
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>
)
fn apply_switch_int_edge_effects(
&self,
_block: BasicBlock,
_discr: &Operand<'tcx>,
_apply_edge_effects: &mut impl SwitchIntEdgeEffects<Self::Domain>
)
Updates the current dataflow state with the effect of taking a particular branch in a
SwitchInt
terminator. Read more
The type that holds the dataflow state at any given point in the program.
A descriptive name for this analysis. Used only for debugging. Read more
The initial value of the dataflow state upon entry to each basic block.
Mutates the initial value of the dataflow state upon entry to the START_BLOCK
. Read more
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
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes