-
Notifications
You must be signed in to change notification settings - Fork 341
Cherry-pick 51d5d7bbae92493a5bfa7cc6b519de8a5bb32fdb from LLVM mainline #7797
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
Cherry-pick 51d5d7bbae92493a5bfa7cc6b519de8a5bb32fdb from LLVM mainline #7797
Conversation
Please test with swiftlang/swift#69843 |
Tagging @rxwei |
76cea32
to
be89e73
Compare
Please test with swiftlang/swift#69843 |
Please test with swiftlang/swift#69843 |
3 similar comments
Please test with swiftlang/swift#69843 |
Please test with swiftlang/swift#69843 |
Please test with swiftlang/swift#69843 |
be89e73
to
5dcf7c0
Compare
Please test with swiftlang/swift#69843 |
Please test with swiftlang/swift#69843 |
5dcf7c0
to
70b9470
Compare
Please test with swiftlang/swift#69843 |
Please test with swiftlang/swift#69843 |
70b9470
to
1a25f84
Compare
Please test with swiftlang/swift#69843 |
Please test with swiftlang/swift#69843 |
1a25f84
to
fdf1a32
Compare
Please test with swiftlang/swift#69843 |
fdf1a32
to
fb244ea
Compare
Please test with swiftlang/swift#69843 |
Please test with swiftlang/swift#69843 |
…ts to opaque pointers (llvm#65698)
…al result (llvm#66333) One of the main user of these kind of coroutines is swift. There yield-once (`retcon.once`) coroutines are used to temporary "expose" pointers to internal fields of various objects creating borrow scopes. However, in some cases it might be useful also to allow these coroutines to produce a normal result, but there is no convenient way to represent this (as compared to switched-resume kind of coroutines where C++ `co_return` is transformed to a member / callback call on promise object). The extension is simple: we allow continuation function to have a non-void result and accept optional extra arguments via a special `llvm.coro.end.result` intrinsic that would essentially forward them as normal results.
fb244ea
to
012b976
Compare
Please test with swiftlang/swift#69843 |
Please test with swiftlang/swift#69843 |
1 similar comment
Please test with swiftlang/swift#69843 |
Please test with swiftlang/swift#69843 |
@rxwei Looks like I do not have write access here. Will you please merge this PR for me? This is LLVM counterpart of swiftlang/swift#69843 |
Hi @asl swift main isn't building because this isn't merged yet. Can you merge or revert swiftlang/swift#69843 ? thanks. |
@jasonmolenda I realized that I do not have write access to apple/llvm-project after I merged swiftlang/swift#69843 Will you please merge this PR for me? Thanks! |
@jasonmolenda Thanks a lot! |
Required for swiftlang/swift#69843