@@ -91,15 +91,16 @@ class AbstractDenseForwardDataFlowAnalysis : public DataFlowAnalysis {
91
91
const AbstractDenseLattice &before,
92
92
AbstractDenseLattice *after) = 0;
93
93
94
- // / Get the dense lattice after the execution of the given program point .
95
- virtual AbstractDenseLattice *getLattice (ProgramPoint point ) = 0;
94
+ // / Get the dense lattice after the execution of the given lattice anchor .
95
+ virtual AbstractDenseLattice *getLattice (LatticeAnchor anchor ) = 0;
96
96
97
97
// / Get the dense lattice after the execution of the given program point and
98
- // / add it as a dependency to a program point. That is, every time the lattice
99
- // / after point is updated, the dependent program point must be visited, and
100
- // / the newly triggered visit might update the lattice after dependent.
98
+ // / add it as a dependency to a lattice anchor. That is, every time the
99
+ // / lattice after anchor is updated, the dependent program point must be
100
+ // / visited, and the newly triggered visit might update the lattice after
101
+ // / dependent.
101
102
const AbstractDenseLattice *getLatticeFor (ProgramPoint dependent,
102
- ProgramPoint point );
103
+ LatticeAnchor anchor );
103
104
104
105
// / Set the dense lattice at control flow entry point and propagate an update
105
106
// / if it changed.
@@ -249,9 +250,9 @@ class DenseForwardDataFlowAnalysis
249
250
}
250
251
251
252
protected:
252
- // / Get the dense lattice after this program point .
253
- LatticeT *getLattice (ProgramPoint point ) override {
254
- return getOrCreate<LatticeT>(point );
253
+ // / Get the dense lattice on this lattice anchor .
254
+ LatticeT *getLattice (LatticeAnchor anchor ) override {
255
+ return getOrCreate<LatticeT>(anchor );
255
256
}
256
257
257
258
// / Set the dense lattice at control flow entry point and propagate an update
@@ -331,16 +332,16 @@ class AbstractDenseBackwardDataFlowAnalysis : public DataFlowAnalysis {
331
332
const AbstractDenseLattice &after,
332
333
AbstractDenseLattice *before) = 0;
333
334
334
- // / Get the dense lattice before the execution of the program point . That is,
335
+ // / Get the dense lattice before the execution of the lattice anchor . That is,
335
336
// / before the execution of the given operation or after the execution of the
336
337
// / block.
337
- virtual AbstractDenseLattice *getLattice (ProgramPoint point ) = 0;
338
+ virtual AbstractDenseLattice *getLattice (LatticeAnchor anchor ) = 0;
338
339
339
- // / Get the dense lattice before the execution of the program point `point`
340
- // / and declare that the `dependent` program point must be updated every time
341
- // / `point` is.
340
+ // / Get the dense lattice before the execution of the program point in
341
+ // / `anchor` and declare that the `dependent` program point must be updated
342
+ // / every time `point` is.
342
343
const AbstractDenseLattice *getLatticeFor (ProgramPoint dependent,
343
- ProgramPoint point );
344
+ LatticeAnchor anchor );
344
345
345
346
// / Set the dense lattice before at the control flow exit point and propagate
346
347
// / the update if it changed.
@@ -500,9 +501,9 @@ class DenseBackwardDataFlowAnalysis
500
501
}
501
502
502
503
protected:
503
- // / Get the dense lattice at the given program point .
504
- LatticeT *getLattice (ProgramPoint point ) override {
505
- return getOrCreate<LatticeT>(point );
504
+ // / Get the dense lattice at the given lattice anchor .
505
+ LatticeT *getLattice (LatticeAnchor anchor ) override {
506
+ return getOrCreate<LatticeT>(anchor );
506
507
}
507
508
508
509
// / Set the dense lattice at control flow exit point (after the terminator)
0 commit comments