[−][src]Struct rustc_mir::transform::check_consts::resolver::FlowSensitiveAnalysis
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]
Q: Qualif,
pub(super) fn new(
_: Q,
ccx: &'a ConstCx<'mir, 'tcx>
) -> Self[src]
_: Q,
ccx: &'a ConstCx<'mir, 'tcx>
) -> Self
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]
Q: Qualif,
fn apply_statement_effect(
&self,
state: &mut BitSet<Self::Idx>,
statement: &Statement<'tcx>,
location: Location
)[src]
&self,
state: &mut BitSet<Self::Idx>,
statement: &Statement<'tcx>,
location: Location
)
fn apply_terminator_effect(
&self,
state: &mut BitSet<Self::Idx>,
terminator: &Terminator<'tcx>,
location: Location
)[src]
&self,
state: &mut BitSet<Self::Idx>,
terminator: &Terminator<'tcx>,
location: Location
)
fn apply_call_return_effect(
&self,
state: &mut BitSet<Self::Idx>,
block: BasicBlock,
func: &Operand<'tcx>,
args: &[Operand<'tcx>],
return_place: Place<'tcx>
)[src]
&self,
state: &mut BitSet<Self::Idx>,
block: BasicBlock,
func: &Operand<'tcx>,
args: &[Operand<'tcx>],
return_place: Place<'tcx>
)
fn apply_before_statement_effect(
&self,
_state: &mut BitSet<Self::Idx>,
_statement: &Statement<'tcx>,
_location: Location
)[src]
&self,
_state: &mut BitSet<Self::Idx>,
_statement: &Statement<'tcx>,
_location: Location
)
fn apply_before_terminator_effect(
&self,
_state: &mut BitSet<Self::Idx>,
_terminator: &Terminator<'tcx>,
_location: Location
)[src]
&self,
_state: &mut BitSet<Self::Idx>,
_terminator: &Terminator<'tcx>,
_location: Location
)
fn apply_yield_resume_effect(
&self,
_state: &mut BitSet<Self::Idx>,
_resume_block: BasicBlock,
_resume_place: Place<'tcx>
)[src]
&self,
_state: &mut BitSet<Self::Idx>,
_resume_block: BasicBlock,
_resume_place: Place<'tcx>
)
fn apply_discriminant_switch_effect(
&self,
_state: &mut BitSet<Self::Idx>,
_block: BasicBlock,
_enum_place: Place<'tcx>,
_adt: &AdtDef,
_variant: VariantIdx
)[src]
&self,
_state: &mut BitSet<Self::Idx>,
_block: BasicBlock,
_enum_place: Place<'tcx>,
_adt: &AdtDef,
_variant: VariantIdx
)
fn into_engine<'mir>(
self,
tcx: TyCtxt<'tcx>,
body: &'mir Body<'tcx>,
def_id: DefId
) -> Engine<'mir, 'tcx, Self> where
Self: Sized, [src]
self,
tcx: TyCtxt<'tcx>,
body: &'mir Body<'tcx>,
def_id: DefId
) -> Engine<'mir, 'tcx, Self> where
Self: Sized,
impl<Q, 'tcx, '_, '_> AnalysisDomain<'tcx> for FlowSensitiveAnalysis<'_, '_, 'tcx, Q> where
Q: Qualif, [src]
Q: Qualif,
type Idx = Local
The type of the elements in the state vector.
const NAME: &'static str[src]
fn bits_per_block(&self, body: &Body<'tcx>) -> usize[src]
fn initialize_start_block(
&self,
_body: &Body<'tcx>,
state: &mut BitSet<Self::Idx>
)[src]
&self,
_body: &Body<'tcx>,
state: &mut BitSet<Self::Idx>
)
type Direction: Direction = Forward
fn pretty_print_idx(&self, w: &mut impl Write, idx: Self::Idx) -> Result<()>[src]
impl<Q, '_, '_, '_> BottomValue for FlowSensitiveAnalysis<'_, '_, '_, Q>[src]
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> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.