File tree Expand file tree Collapse file tree 15 files changed +21
-21
lines changed
include/swift/SILOptimizer Expand file tree Collapse file tree 15 files changed +21
-21
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ class AccessSummaryAnalysis : public BottomUpIPAnalysis {
199
199
virtual void invalidate () override ;
200
200
virtual void invalidate (SILFunction *F, InvalidationKind K) override ;
201
201
virtual void notifyAddedOrModifiedFunction (SILFunction *F) override {}
202
- virtual void notifyDeleteFunction (SILFunction *F) override {
202
+ virtual void notifyWillDeleteFunction (SILFunction *F) override {
203
203
invalidate (F, InvalidationKind::Nothing);
204
204
}
205
205
virtual void invalidateFunctionTables () override {}
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ class AliasAnalysis : public SILAnalysis {
285
285
286
286
// / Notify the analysis about a function which will be deleted from the
287
287
// / module.
288
- virtual void notifyDeleteFunction (SILFunction *F) override { }
288
+ virtual void notifyWillDeleteFunction (SILFunction *F) override {}
289
289
290
290
virtual void invalidateFunctionTables () override { }
291
291
};
Original file line number Diff line number Diff line change @@ -119,9 +119,9 @@ class SILAnalysis : public DeleteNotificationHandler {
119
119
// / Notify the analysis about a newly added or modified function.
120
120
virtual void notifyAddedOrModifiedFunction (SILFunction *f) = 0;
121
121
122
- // / Notify the analysis about a function which will be deleted from the
122
+ // / Notify the analysis about a function that will be deleted from the
123
123
// / module.
124
- virtual void notifyDeleteFunction (SILFunction *f) = 0;
124
+ virtual void notifyWillDeleteFunction (SILFunction *f) = 0;
125
125
126
126
// / Notify the analysis about changed witness or vtables.
127
127
virtual void invalidateFunctionTables () = 0;
@@ -248,7 +248,7 @@ class FunctionAnalysisBase : public SILAnalysis {
248
248
249
249
// / Notify the analysis about a function which will be deleted from the
250
250
// / module.
251
- virtual void notifyDeleteFunction (SILFunction *f) override {
251
+ virtual void notifyWillDeleteFunction (SILFunction *f) override {
252
252
invalidateFunction (f);
253
253
}
254
254
Original file line number Diff line number Diff line change @@ -151,10 +151,10 @@ class BasicCalleeAnalysis : public SILAnalysis {
151
151
152
152
// / Notify the analysis about a function which will be deleted from the
153
153
// / module.
154
- virtual void notifyDeleteFunction (SILFunction *F) override {
155
- // No invalidation needed because the analysis does not cache anything
156
- // per call-site in functions.
157
- };
154
+ virtual void notifyWillDeleteFunction (SILFunction *F) override {
155
+ // No invalidation needed because the analysis does not cache anything per
156
+ // call-site in functions.
157
+ }
158
158
159
159
// / Notify the analysis about changed witness or vtables.
160
160
virtual void invalidateFunctionTables () override {
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ class CallerAnalysis : public SILAnalysis {
111
111
112
112
// / Notify the analysis about a function which will be deleted from the
113
113
// / module.
114
- virtual void notifyDeleteFunction (SILFunction *F) override {
114
+ virtual void notifyWillDeleteFunction (SILFunction *F) override {
115
115
invalidateExistingCalleeRelation (F);
116
116
RecomputeFunctionList.remove (F);
117
117
}
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class ClassHierarchyAnalysis : public SILAnalysis {
58
58
59
59
// / Notify the analysis about a function which will be deleted from the
60
60
// / module.
61
- virtual void notifyDeleteFunction (SILFunction *F) override { }
61
+ virtual void notifyWillDeleteFunction (SILFunction *F) override {}
62
62
63
63
// / Notify the analysis about changed witness or vtables.
64
64
virtual void invalidateFunctionTables () override { }
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ class ClosureScopeAnalysis : public SILAnalysis {
151
151
152
152
// / Notify the analysis about a function which will be deleted from the
153
153
// / module.
154
- virtual void notifyDeleteFunction (SILFunction *F) override ;
154
+ virtual void notifyWillDeleteFunction (SILFunction *F) override ;
155
155
156
156
// / Notify the analysis about changed witness or vtables.
157
157
virtual void invalidateFunctionTables () override {
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ class DestructorAnalysis : public SILAnalysis {
50
50
51
51
// / Notify the analysis about a function which will be deleted from the
52
52
// / module.
53
- virtual void notifyDeleteFunction (SILFunction *F) override { }
53
+ virtual void notifyWillDeleteFunction (SILFunction *F) override {}
54
54
55
55
// / Notify the analysis about changed witness or vtables.
56
56
virtual void invalidateFunctionTables () override { }
Original file line number Diff line number Diff line change @@ -806,7 +806,7 @@ class EscapeAnalysis : public BottomUpIPAnalysis {
806
806
807
807
// / Notify the analysis about a function which will be deleted from the
808
808
// / module.
809
- virtual void notifyDeleteFunction (SILFunction *F) override {
809
+ virtual void notifyWillDeleteFunction (SILFunction *F) override {
810
810
invalidate (F, InvalidationKind::Nothing);
811
811
}
812
812
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ class ProtocolConformanceAnalysis : public SILAnalysis {
58
58
59
59
// / Notify the analysis about a function which will be deleted from the
60
60
// / module.
61
- virtual void notifyDeleteFunction (SILFunction *F) override {}
61
+ virtual void notifyWillDeleteFunction (SILFunction *F) override {}
62
62
63
63
// / Notify the analysis about changed witness or vtables.
64
64
virtual void invalidateFunctionTables () override {}
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ class GenericFunctionEffectAnalysis : public BottomUpIPAnalysis {
127
127
128
128
// / Notify the analysis about a function which will be deleted from the
129
129
// / module.
130
- virtual void notifyDeleteFunction (SILFunction *F) override {
130
+ virtual void notifyWillDeleteFunction (SILFunction *F) override {
131
131
invalidate (F, InvalidationKind::Nothing);
132
132
}
133
133
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ class TypeExpansionAnalysis : public SILAnalysis {
48
48
49
49
// / Notify the analysis about a function which will be deleted from the
50
50
// / module.
51
- virtual void notifyDeleteFunction (SILFunction *F) override { }
51
+ virtual void notifyWillDeleteFunction (SILFunction *F) override {}
52
52
53
53
// / Notify the analysis about changed witness or vtables.
54
54
virtual void invalidateFunctionTables () override { }
Original file line number Diff line number Diff line change @@ -207,8 +207,8 @@ class SILPassManager {
207
207
// Invalidate the analysis (unless they are locked)
208
208
for (auto AP : Analysis)
209
209
if (!AP->isLocked ())
210
- AP->notifyDeleteFunction (F);
211
-
210
+ AP->notifyWillDeleteFunction (F);
211
+
212
212
CurrentPassHasInvalidated = true ;
213
213
// Any change let all passes run again.
214
214
CompletedPassesMap[F].reset ();
Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ void ClosureScopeAnalysis::invalidate() {
150
150
if (scopeData) scopeData->reset ();
151
151
}
152
152
153
- void ClosureScopeAnalysis::notifyDeleteFunction (SILFunction *F) {
153
+ void ClosureScopeAnalysis::notifyWillDeleteFunction (SILFunction *F) {
154
154
if (scopeData) scopeData->erase (F);
155
155
}
156
156
Original file line number Diff line number Diff line change @@ -498,7 +498,7 @@ class OptimizerStatsAnalysis : public SILAnalysis {
498
498
499
499
// / Notify the analysis about a function which will be deleted from the
500
500
// / module.
501
- virtual void notifyDeleteFunction (SILFunction *F) override {
501
+ virtual void notifyWillDeleteFunction (SILFunction *F) override {
502
502
DeletedFuncs.push_back (F);
503
503
};
504
504
You can’t perform that action at this time.
0 commit comments