Struct rustc_mir_dataflow::Results [−][src]
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
pub 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
.
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
Creates an empty FlowState
to hold the transient state for these dataflow results. Read more
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> 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
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.