Merge remote-tracking branch 'origin/main' into rebranch

This commit is contained in:
swift-ci
2021-12-17 16:54:09 -08:00
73 changed files with 2199 additions and 92 deletions

View File

@@ -2199,6 +2199,13 @@ void IRGenSILFunction::emitSILFunction() {
IGM.noteSwiftAsyncFunctionDef();
}
// Emit distributed accessor, and mark the thunk as accessible
// by name at runtime through it.
if (CurSILFn->isDistributed() && CurSILFn->isThunk()) {
IGM.emitDistributedMethodAccessor(CurSILFn);
IGM.addAccessibleFunction(CurSILFn);
}
// Configure the dominance resolver.
// TODO: consider re-using a dom analysis from the PassManager
// TODO: consider using a cheaper analysis at -O0