SIL optimizations: Implement the new API for analysis invalidation.

There are now separate functions for function addition and deletion instead of InvalidationKind::Function.
Also, there is a new function for witness/vtable invalidations.

rdar://problem/29311657
This commit is contained in:
Erik Eckstein
2017-03-14 10:51:50 -07:00
parent ef4b5e1efe
commit a0079ba5be
31 changed files with 309 additions and 166 deletions

View File

@@ -112,7 +112,7 @@ bool GenericSpecializer::specializeAppliesInFunction(SILFunction &F) {
// (as opposed to returning a previous specialization), we need to notify
// the pass manager so that the new functions get optimized.
for (SILFunction *NewF : reverse(NewFunctions)) {
notifyPassManagerOfFunction(NewF, Callee);
notifyAddFunction(NewF, Callee);
}
}
}