Commit Graph

63 Commits

Author SHA1 Message Date
Pavel Yaskevich
8980922a53 [Distributed] IRGen: Mark accessor as throws and forward error values from distributed method
Distributed method is always `async throws` outside of its isolation
context, so accessor has to be `async throws` as well, and be able
to forward error value from the call to the outside.
2021-12-17 10:52:55 -08:00
Pavel Yaskevich
9d1c103f5e [Distributed] IRGen: Turn distributed method accessor into async function 2021-12-17 10:52:55 -08:00
Pavel Yaskevich
185a6630f1 [Distributed] IRGen: Forward distributed method results through accessor
Accessor infers result(s) from the underlying distributed method its
going to call, and forwards all of the results produced by such call
up to the caller.
2021-12-17 10:52:55 -08:00
Pavel Yaskevich
a866a7a53e [Distributed] IRGen: Emit a call to a distributed method
Note that results are not handled yet.
2021-12-17 10:52:55 -08:00
Pavel Yaskevich
ac2973d211 [Distributed] IRGen: Form a callee for a distributed method 2021-12-17 10:52:55 -08:00
Pavel Yaskevich
19bf160ed0 [Distributed] IRGen: Add argument loading from UnsafeRawPointer into an explosion
`DistributedAccessor::computeArguments` handles loading of the argument
values from the provided `UnsafeRawPointer` (managed by the caller),
coercing retrieved arguments to appropriate platform-native representation,
and exploding object to form correct argument sequence for distributed
method call.
2021-12-17 10:52:55 -08:00
Pavel Yaskevich
9ebdf36ca6 [IRGen] Add skeleton implementation of distributed method accessor 2021-12-17 10:52:55 -08:00
Kavon Farvardin
006e2b446b Replace destoryDistributedActor builtin with destroyDefaultActor
Currently, they both end up doing the exact same thing, so there's
no need for both.
2021-10-21 19:41:31 -07:00
Dario Rexin
d43ea45b6a Revert "Revert "Merge pull request #38938 from drexin/wip-dist-resolve" (#38994)" (#39011)
This reverts commit f6ae9f3387.
2021-08-24 13:33:37 +09:00
Konrad `ktoso` Malawski
f6ae9f3387 Revert "Merge pull request #38938 from drexin/wip-dist-resolve" (#38994)
This reverts commit a4f3f2fb48, reversing
changes made to 8cf6c2e71b.
2021-08-23 20:30:41 +09:00
Dario Rexin
810e2cff84 [Distributed] Fix type lowering for Builtin.initializeDistributedRemoteActor 2021-08-19 17:31:11 -07:00
Konrad `ktoso` Malawski
829a5d6895 [Distributed] Review followup and cleanups 2021-08-12 14:09:03 +09:00
Konrad `ktoso` Malawski
0c3720bc92 [Distributed] introduce GenDistributed.h/cpp for code organization 2021-08-12 14:09:01 +09:00