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]
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]
&self,
state: &'a mut BitSet<Local>
) -> TransferFunction<'a, 'mir, 'tcx, Q>
Trait Implementations
impl<Q, 'tcx> Analysis<'tcx> for FlowSensitiveAnalysis<'_, '_, 'tcx, Q> where
Q: Qualif, [src]
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]
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]
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]
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]
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]
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]
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]
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
impl<Q, 'tcx> AnalysisDomain<'tcx> for FlowSensitiveAnalysis<'_, '_, 'tcx, Q> where
Q: Qualif, [src]
impl<Q, 'tcx> AnalysisDomain<'tcx> for FlowSensitiveAnalysis<'_, '_, 'tcx, Q> where
Q: Qualif, [src]type Domain = BitSet<Local>
type Domain = BitSet<Local>The type that holds the dataflow state at any given point in the program.
const NAME: &'static str[src]
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]
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]
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
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,
Q: Unpin,
'mir: 'a,
'tcx: 'a,
impl<'a, 'mir, 'tcx, Q> !UnwindSafe for FlowSensitiveAnalysis<'a, 'mir, 'tcx, Q>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> WithConstness for T[src]
impl<T> WithConstness for T[src]