@@ -48,7 +48,7 @@ class SILPassManager {
48
48
llvm::SmallVector<SILTransform *, 16 > Transformations;
49
49
50
50
// / A list of registered analysis.
51
- llvm::SmallVector<SILAnalysis *, 16 > Analysis ;
51
+ llvm::SmallVector<SILAnalysis *, 16 > Analyses ;
52
52
53
53
// / An entry in the FunctionWorkList.
54
54
struct WorklistEntry {
@@ -122,7 +122,7 @@ class SILPassManager {
122
122
// / analysis. If the analysis is not found, the program terminates.
123
123
template <typename T>
124
124
T *getAnalysis () {
125
- for (SILAnalysis *A : Analysis )
125
+ for (SILAnalysis *A : Analyses )
126
126
if (auto *R = llvm::dyn_cast<T>(A))
127
127
return R;
128
128
@@ -145,7 +145,7 @@ class SILPassManager {
145
145
// / \brief Iterate over all analysis and invalidate them.
146
146
void invalidateAllAnalysis () {
147
147
// Invalidate the analysis (unless they are locked)
148
- for (auto AP : Analysis )
148
+ for (auto AP : Analyses )
149
149
if (!AP->isLocked ())
150
150
AP->invalidate ();
151
151
@@ -170,7 +170,7 @@ class SILPassManager {
170
170
// / is the job of the analysis to make sure no extra work is done if the
171
171
// / particular analysis has been done on the function.
172
172
void notifyAnalysisOfFunction (SILFunction *F) {
173
- for (auto AP : Analysis ) {
173
+ for (auto AP : Analyses ) {
174
174
AP->notifyAddedOrModifiedFunction (F);
175
175
}
176
176
}
@@ -179,7 +179,7 @@ class SILPassManager {
179
179
void invalidateAnalysis (SILFunction *F,
180
180
SILAnalysis::InvalidationKind K) {
181
181
// Invalidate the analysis (unless they are locked)
182
- for (auto AP : Analysis )
182
+ for (auto AP : Analyses )
183
183
if (!AP->isLocked ())
184
184
AP->invalidate (F, K);
185
185
@@ -192,7 +192,7 @@ class SILPassManager {
192
192
// / or vtables.
193
193
void invalidateFunctionTables () {
194
194
// Invalidate the analysis (unless they are locked)
195
- for (auto AP : Analysis )
195
+ for (auto AP : Analyses )
196
196
if (!AP->isLocked ())
197
197
AP->invalidateFunctionTables ();
198
198
@@ -205,7 +205,7 @@ class SILPassManager {
205
205
// / \brief Iterate over all analysis and notify them of a deleted function.
206
206
void notifyDeleteFunction (SILFunction *F) {
207
207
// Invalidate the analysis (unless they are locked)
208
- for (auto AP : Analysis )
208
+ for (auto AP : Analyses )
209
209
if (!AP->isLocked ())
210
210
AP->notifyWillDeleteFunction (F);
211
211
@@ -233,7 +233,7 @@ class SILPassManager {
233
233
234
234
// / Verify all analyses.
235
235
void verifyAnalyses () const {
236
- for (auto *A : Analysis ) {
236
+ for (auto *A : Analyses ) {
237
237
A->verify ();
238
238
}
239
239
}
@@ -245,7 +245,7 @@ class SILPassManager {
245
245
// / this. If no override is provided the SILAnalysis should just call the
246
246
// / normal verify method.
247
247
void verifyAnalyses (SILFunction *F) const {
248
- for (auto *A : Analysis ) {
248
+ for (auto *A : Analyses ) {
249
249
A->verify (F);
250
250
}
251
251
}
0 commit comments