pub type ResultsCloned<'res, 'tcx, A> = Results<'tcx, A, &'res IndexVec<BasicBlock, <A as AnalysisDomain<'tcx>>::Domain>>;
Expand description

Results type with a cloned Analysis and borrowed entry sets.

Aliased Type§

struct ResultsCloned<'res, 'tcx, A> {
    pub analysis: A,
    pub(super) entry_sets: &'res IndexVec<BasicBlock, <A as AnalysisDomain<'tcx>>::Domain>,
    pub(super) _marker: PhantomData<&'tcx ()>,
}

Fields§

§analysis: A§entry_sets: &'res IndexVec<BasicBlock, <A as AnalysisDomain<'tcx>>::Domain>§_marker: PhantomData<&'tcx ()>

Implementations§

source§

impl<'tcx, A, E> Results<'tcx, A, E>where A: Analysis<'tcx>, E: Borrow<IndexVec<BasicBlock, <A as AnalysisDomain<'tcx>>::Domain>>,

source

pub fn into_results_cursor<'mir>( self, body: &'mir Body<'tcx> ) -> ResultsCursor<'mir, 'tcx, A, Self>

Creates a ResultsCursor that can inspect these Results.

source

pub fn entry_set_for_block(&self, block: BasicBlock) -> &A::Domain

Gets the dataflow state for the given block.

source

pub fn visit_with<'mir>( &mut self, body: &'mir Body<'tcx>, blocks: impl IntoIterator<Item = BasicBlock>, vis: &mut impl ResultsVisitor<'mir, 'tcx, Self, FlowState = A::Domain> )

source

pub fn visit_reachable_with<'mir>( &mut self, body: &'mir Body<'tcx>, vis: &mut impl ResultsVisitor<'mir, 'tcx, Self, FlowState = A::Domain> )

source§

impl<'res, 'tcx, A> Results<'tcx, A, &'res IndexVec<BasicBlock, <A as AnalysisDomain<'tcx>>::Domain>>where A: Analysis<'tcx> + CloneAnalysis,

source

pub fn reclone_analysis(&self) -> Self

Creates a new Results type with a cloned Analysis and borrowed entry sets.

Trait Implementations§

source§

impl<'tcx, A, E> AnalysisResults<'tcx, A> for Results<'tcx, A, E>where A: Analysis<'tcx>, E: Borrow<IndexVec<BasicBlock, <A as AnalysisDomain<'tcx>>::Domain>>,

§

type EntrySets = E

The type containing the entry sets for this Results type. Read more
source§

impl<'tcx, A, E> ResultsVisitable<'tcx> for Results<'tcx, A, E>where A: Analysis<'tcx>, E: Borrow<IndexVec<BasicBlock, <A as AnalysisDomain<'tcx>>::Domain>>,

§

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

Creates an empty FlowState to hold the transient state for these dataflow results. Read more
source§

fn reset_to_block_entry(&self, state: &mut Self::FlowState, block: BasicBlock)

source§

fn reconstruct_before_statement_effect( &mut self, state: &mut Self::FlowState, stmt: &Statement<'tcx>, loc: Location )

source§

fn reconstruct_statement_effect( &mut self, state: &mut Self::FlowState, stmt: &Statement<'tcx>, loc: Location )

source§

fn reconstruct_before_terminator_effect( &mut self, state: &mut Self::FlowState, term: &Terminator<'tcx>, loc: Location )

source§

fn reconstruct_terminator_effect( &mut self, state: &mut Self::FlowState, term: &Terminator<'tcx>, loc: Location )

Layout§

Note: Encountered an error during type layout; the type failed to be normalized.