Rename FlowState
as Domain
.
Because that's what it is; no point having a different name for it.
This commit is contained in:
parent
55c9f96265
commit
bb943f93ff
10 changed files with 160 additions and 163 deletions
|
@ -885,12 +885,12 @@ struct StorageConflictVisitor<'a, 'tcx> {
|
|||
impl<'a, 'tcx, R> rustc_mir_dataflow::ResultsVisitor<'a, 'tcx, R>
|
||||
for StorageConflictVisitor<'a, 'tcx>
|
||||
{
|
||||
type FlowState = BitSet<Local>;
|
||||
type Domain = BitSet<Local>;
|
||||
|
||||
fn visit_statement_before_primary_effect(
|
||||
&mut self,
|
||||
_results: &mut R,
|
||||
state: &Self::FlowState,
|
||||
state: &Self::Domain,
|
||||
_statement: &'a Statement<'tcx>,
|
||||
loc: Location,
|
||||
) {
|
||||
|
@ -900,7 +900,7 @@ impl<'a, 'tcx, R> rustc_mir_dataflow::ResultsVisitor<'a, 'tcx, R>
|
|||
fn visit_terminator_before_primary_effect(
|
||||
&mut self,
|
||||
_results: &mut R,
|
||||
state: &Self::FlowState,
|
||||
state: &Self::Domain,
|
||||
_terminator: &'a Terminator<'tcx>,
|
||||
loc: Location,
|
||||
) {
|
||||
|
@ -909,13 +909,13 @@ impl<'a, 'tcx, R> rustc_mir_dataflow::ResultsVisitor<'a, 'tcx, R>
|
|||
}
|
||||
|
||||
impl StorageConflictVisitor<'_, '_> {
|
||||
fn apply_state(&mut self, flow_state: &BitSet<Local>, loc: Location) {
|
||||
fn apply_state(&mut self, state: &BitSet<Local>, loc: Location) {
|
||||
// Ignore unreachable blocks.
|
||||
if let TerminatorKind::Unreachable = self.body.basic_blocks[loc.block].terminator().kind {
|
||||
return;
|
||||
}
|
||||
|
||||
self.eligible_storage_live.clone_from(flow_state);
|
||||
self.eligible_storage_live.clone_from(state);
|
||||
self.eligible_storage_live.intersect(&**self.saved_locals);
|
||||
|
||||
for local in self.eligible_storage_live.iter() {
|
||||
|
|
|
@ -723,13 +723,13 @@ impl<'mir, 'tcx>
|
|||
ResultsVisitor<'mir, 'tcx, Results<'tcx, ValueAnalysisWrapper<ConstAnalysis<'_, 'tcx>>>>
|
||||
for Collector<'tcx, '_>
|
||||
{
|
||||
type FlowState = State<FlatSet<Scalar>>;
|
||||
type Domain = State<FlatSet<Scalar>>;
|
||||
|
||||
#[instrument(level = "trace", skip(self, results, statement))]
|
||||
fn visit_statement_before_primary_effect(
|
||||
&mut self,
|
||||
results: &mut Results<'tcx, ValueAnalysisWrapper<ConstAnalysis<'_, 'tcx>>>,
|
||||
state: &Self::FlowState,
|
||||
state: &Self::Domain,
|
||||
statement: &'mir Statement<'tcx>,
|
||||
location: Location,
|
||||
) {
|
||||
|
@ -751,7 +751,7 @@ impl<'mir, 'tcx>
|
|||
fn visit_statement_after_primary_effect(
|
||||
&mut self,
|
||||
results: &mut Results<'tcx, ValueAnalysisWrapper<ConstAnalysis<'_, 'tcx>>>,
|
||||
state: &Self::FlowState,
|
||||
state: &Self::Domain,
|
||||
statement: &'mir Statement<'tcx>,
|
||||
location: Location,
|
||||
) {
|
||||
|
@ -776,7 +776,7 @@ impl<'mir, 'tcx>
|
|||
fn visit_terminator_before_primary_effect(
|
||||
&mut self,
|
||||
results: &mut Results<'tcx, ValueAnalysisWrapper<ConstAnalysis<'_, 'tcx>>>,
|
||||
state: &Self::FlowState,
|
||||
state: &Self::Domain,
|
||||
terminator: &'mir Terminator<'tcx>,
|
||||
location: Location,
|
||||
) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue