Skip to content

[CoroutineAccessors] Use yield_once_2 on Darwin and Linux. #80701

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 2 commits into from
Apr 10, 2025

Conversation

nate-chandler
Copy link
Contributor

@nate-chandler nate-chandler commented Apr 9, 2025

Key functions' coroutine kind off the platform and provide optional flags for overriding.

rdar://148941214

Now that coroutine kind (and consequently ABI) for the accessors is
keyed off a SIL option, it's no longer possible to read whether a given
SILFunction arose from a read/modify coroutine just by checking its
coroutine kind.  Regardless of ABI, read/modify coroutines may only
unwind (i.e. are only permitted not to "run to completion") if the
relevant experimental (soon to be deleted) feature is enabled.
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

@nate-chandler nate-chandler marked this pull request as ready for review April 10, 2025 21:46
@nate-chandler nate-chandler merged commit 2e1494d into swiftlang:main Apr 10, 2025
5 checks passed
@nate-chandler nate-chandler deleted the rdar148941214 branch April 10, 2025 21:46
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.

2 participants