Type Alias rustc_mir_dataflow::ResultsCloned
source · 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>>,
impl<'tcx, A, E> Results<'tcx, A, E>where A: Analysis<'tcx>, E: Borrow<IndexVec<BasicBlock, <A as AnalysisDomain<'tcx>>::Domain>>,
sourcepub fn into_results_cursor<'mir>(
self,
body: &'mir Body<'tcx>
) -> ResultsCursor<'mir, 'tcx, A, Self>
pub fn into_results_cursor<'mir>( self, body: &'mir Body<'tcx> ) -> ResultsCursor<'mir, 'tcx, A, Self>
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>( &mut self, body: &'mir Body<'tcx>, blocks: impl IntoIterator<Item = BasicBlock>, vis: &mut impl ResultsVisitor<'mir, 'tcx, Self, FlowState = A::Domain> )
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,
impl<'res, 'tcx, A> Results<'tcx, A, &'res IndexVec<BasicBlock, <A as AnalysisDomain<'tcx>>::Domain>>where A: Analysis<'tcx> + CloneAnalysis,
sourcepub fn reclone_analysis(&self) -> Self
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>>,
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>>,
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>>,
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
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( &mut self, state: &mut Self::FlowState, stmt: &Statement<'tcx>, loc: Location )
fn reconstruct_statement_effect( &mut self, state: &mut Self::FlowState, stmt: &Statement<'tcx>, loc: Location )
fn reconstruct_before_terminator_effect( &mut self, state: &mut Self::FlowState, term: &Terminator<'tcx>, loc: Location )
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.