Skip to content

[stable/20240723] Coro: Add a function attribute for resume from call async funclets #9229

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

Conversation

aschwaighofer
Copy link

This change adds a function attribute async_ret for any funclet generated from a async function marked with async_entry that models a return from an async function.

We recognize these continuations by a __swift_async_resume_project_context projection function argument to the suspend function.

rdar://134460666

@aschwaighofer
Copy link
Author

@swift-ci test llvm

… async funclets

This change adds a function attribute `async_ret` for any funclet
generated from a async function marked with `async_entry` that models a
return from an async function.

We recognize these continuations by a `__swift_async_resume_project_context`
projection function argument to the suspend function.

rdar://134460666
@aschwaighofer aschwaighofer force-pushed the async_call_ret_metadata_20240723 branch from bbe52fa to e39a5ff Compare September 9, 2024 16:49
@aschwaighofer
Copy link
Author

@swift-ci test llvm

@aschwaighofer aschwaighofer merged commit 0df4599 into swiftlang:stable/20240723 Sep 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant