Skip to content

[Distributed] IRGen: Don't emit accessor for distributed thunk specia… #41783

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2022

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Mar 11, 2022

…lizations

Only synthesized async throws version is directly accessible remotely.

Resolves: rdar://90129442

…lizations

Only synthesized `async throws` version is directly accessible remotely.

Resolves: rdar://90129442
@xedin xedin requested a review from ktoso March 11, 2022 09:04
@xedin
Copy link
Contributor Author

xedin commented Mar 11, 2022

@swift-ci please clean test

@@ -2239,7 +2239,7 @@ void IRGenSILFunction::emitSILFunction() {

// Emit distributed accessor, and mark the thunk as accessible
// by name at runtime through it.
if (CurSILFn->isDistributed() && CurSILFn->isThunk()) {
if (CurSILFn->isDistributed() && CurSILFn->isThunk() == IsThunk) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoa, I see...

Thank you so much for the fix 🙏

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moving everything into AST enabled optimizations at call sites, which is nice.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, very cool to see that! A bit of a pain to adjust everything but fantastic that we get those benefits <3

@ktoso ktoso added the distributed Feature → concurrency: distributed actor label Mar 11, 2022
@ktoso ktoso merged commit ee7b941 into swiftlang:main Mar 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distributed Feature → concurrency: distributed actor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants