[SIL] Add new flag to SILFunction - IsDistributed

Determines whether given SILFunction represents a distributed
method or its thunk.
This commit is contained in:
Pavel Yaskevich
2021-11-17 10:57:33 -08:00
committed by Pavel Yaskevich
parent 88fb8c2272
commit 4860f90fd7
36 changed files with 146 additions and 82 deletions

View File

@@ -718,7 +718,8 @@ SILFunction *PromotedParamCloner::initCloned(SILOptFunctionBuilder &FuncBuilder,
swift::getSpecializedLinkage(Orig, Orig->getLinkage()), ClonedName,
ClonedTy, Orig->getGenericEnvironment(), Orig->getLocation(),
Orig->isBare(), Orig->isTransparent(), Serialized, IsNotDynamic,
Orig->getEntryCount(), Orig->isThunk(), Orig->getClassSubclassScope(),
IsNotDistributed, Orig->getEntryCount(), Orig->isThunk(),
Orig->getClassSubclassScope(),
Orig->getInlineStrategy(), Orig->getEffectsKind(), Orig,
Orig->getDebugScope());
for (auto &Attr : Orig->getSemanticsAttrs()) {