[distributed] synthesize factory resolve func

This commit is contained in:
Kavon Farvardin
2021-08-03 15:14:42 -07:00
committed by Konrad `ktoso` Malawski
parent 89629fe06f
commit c49f7d0a50
5 changed files with 61 additions and 48 deletions

View File

@@ -510,6 +510,11 @@ SILGenFunction::emitClosureValue(SILLocation loc, SILDeclRef constant,
void SILGenFunction::emitFunction(FuncDecl *fd) {
MagicFunctionName = SILGenModule::getMagicFunctionName(fd);
if (fd->isDistributedActorFactory()) {
emitDistributedActorFactory(fd);
return;
}
auto captureInfo = SGM.M.Types.getLoweredLocalCaptures(SILDeclRef(fd));
emitProfilerIncrement(fd->getTypecheckedBody());
emitProlog(captureInfo, fd->getParameters(), fd->getImplicitSelfDecl(), fd,