[Distributed] Sema: Add a new distributed-thunk attribute

The attribute comes handy during solution application to
determine whether the call is using a distributed thunk.
This commit is contained in:
Pavel Yaskevich
2022-06-17 12:09:16 -07:00
parent 2078aa95d4
commit fa2e64c1fd
11 changed files with 60 additions and 31 deletions

View File

@@ -1290,6 +1290,10 @@ bool AbstractFunctionDecl::isDistributed() const {
return getAttrs().hasAttribute<DistributedActorAttr>();
}
bool AbstractFunctionDecl::isDistributedThunk() const {
return getAttrs().hasAttribute<DistributedThunkAttr>();
}
ConstructorDecl *
NominalTypeDecl::getDistributedRemoteCallTargetInitFunction() const {
auto mutableThis = const_cast<NominalTypeDecl *>(this);