Struct rustc_mir_dataflow::framework::engine::Results
source · pub struct Results<'tcx, A>where
A: Analysis<'tcx>,{
pub analysis: A,
pub(super) entry_sets: IndexVec<BasicBlock, A::Domain>,
}
Expand description
A dataflow analysis that has converged to fixpoint.
Fields§
§analysis: A
§entry_sets: IndexVec<BasicBlock, A::Domain>
Implementations§
source§impl<'tcx, A> Results<'tcx, A>where
A: Analysis<'tcx>,
impl<'tcx, A> Results<'tcx, A>where A: Analysis<'tcx>,
sourcepub fn into_results_cursor<'mir>(
self,
body: &'mir Body<'tcx>
) -> ResultsCursor<'mir, 'tcx, A>
pub fn into_results_cursor<'mir>( self, body: &'mir Body<'tcx> ) -> ResultsCursor<'mir, 'tcx, A>
Creates a ResultsCursor
that can inspect these Results
.
sourcepub fn entry_set_for_block(&self, block: BasicBlock) -> &A::Domain
pub fn entry_set_for_block(&self, block: BasicBlock) -> &A::Domain
Gets the dataflow state for the given block.
pub fn visit_with<'mir>( &self, body: &'mir Body<'tcx>, blocks: impl IntoIterator<Item = BasicBlock>, vis: &mut impl ResultsVisitor<'mir, 'tcx, FlowState = A::Domain> )
pub fn visit_reachable_with<'mir>( &self, body: &'mir Body<'tcx>, vis: &mut impl ResultsVisitor<'mir, 'tcx, FlowState = A::Domain> )
Trait Implementations§
source§impl<'tcx, A> ResultsVisitable<'tcx> for Results<'tcx, A>where
A: Analysis<'tcx>,
impl<'tcx, A> ResultsVisitable<'tcx> for Results<'tcx, A>where A: Analysis<'tcx>,
type FlowState = <A as AnalysisDomain<'tcx>>::Domain
type Direction = <A as AnalysisDomain<'tcx>>::Direction
source§fn new_flow_state(&self, body: &Body<'tcx>) -> Self::FlowState
fn new_flow_state(&self, body: &Body<'tcx>) -> Self::FlowState
Creates an empty
FlowState
to hold the transient state for these dataflow results. Read morefn reset_to_block_entry(&self, state: &mut Self::FlowState, block: BasicBlock)
fn reconstruct_before_statement_effect( &self, state: &mut Self::FlowState, stmt: &Statement<'tcx>, loc: Location )
fn reconstruct_statement_effect( &self, state: &mut Self::FlowState, stmt: &Statement<'tcx>, loc: Location )
fn reconstruct_before_terminator_effect( &self, state: &mut Self::FlowState, term: &Terminator<'tcx>, loc: Location )
fn reconstruct_terminator_effect( &self, state: &mut Self::FlowState, term: &Terminator<'tcx>, loc: Location )
Auto Trait Implementations§
impl<'tcx, A> RefUnwindSafe for Results<'tcx, A>where A: RefUnwindSafe, <A as AnalysisDomain<'tcx>>::Domain: RefUnwindSafe,
impl<'tcx, A> Send for Results<'tcx, A>where A: Send, <A as AnalysisDomain<'tcx>>::Domain: Send,
impl<'tcx, A> Sync for Results<'tcx, A>where A: Sync, <A as AnalysisDomain<'tcx>>::Domain: Sync,
impl<'tcx, A> Unpin for Results<'tcx, A>where A: Unpin, <A as AnalysisDomain<'tcx>>::Domain: Unpin,
impl<'tcx, A> UnwindSafe for Results<'tcx, A>where A: UnwindSafe, <A as AnalysisDomain<'tcx>>::Domain: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.