Skip to content

[SUA][Coroutines] Change LLVM's Coroutine lowering to allow for and use extra hash parameter to llvm.coro.id.retcon.once and llvm.coro.id.retcon (#10015) #10041

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
Feb 22, 2025

Conversation

t-rasmud
Copy link

[SUA][Coroutines] Change LLVM's Coroutine lowering to allow for and use extra hash parameter to llvm.coro.id.retcon.once and llvm.coro.id.retcon

Change the signatures of llvm.coro.id.retcon.once and llvm.coro.id.retcon to pass a hash parameter as a variable argument. This change will allow IRGen to pass the new runtime function swift_coroFrameAlloc (which calls the typed allocator if TMO is enabled) along with a type hash to these two intrinsics.

rdar://141236876
(cherry picked from commit fe25ae6)

…se extra hash parameter to llvm.coro.id.retcon.once and llvm.coro.id.retcon (#10015)

[SUA][Coroutines] Change LLVM's Coroutine lowering to allow for and use extra hash parameter to llvm.coro.id.retcon.once and llvm.coro.id.retcon

Change the signatures of llvm.coro.id.retcon.once and llvm.coro.id.retcon to pass a hash parameter as a variable argument.
This change will allow IRGen to pass the new runtime function swift_coroFrameAlloc (which calls the typed allocator if TMO is enabled)
along with a type hash to these two intrinsics.

rdar://141236876
(cherry picked from commit fe25ae6)
@t-rasmud t-rasmud requested a review from a team as a code owner February 16, 2025 22:51
@t-rasmud
Copy link
Author

@swift-ci test

@t-rasmud
Copy link
Author

@swift-ci test

@t-rasmud
Copy link
Author

Please test with following pull request:
swiftlang/swift#79384

@swift-ci test

@aschwaighofer
Copy link

@swift-ci test llvm

@t-rasmud
Copy link
Author

Please test with following pull request:
swiftlang/swift#79384

@swift-ci test llvm

@t-rasmud
Copy link
Author

Please test with following pull request:
swiftlang/swift#79384

@swift-ci test

@bnbarham bnbarham merged commit 1143bba into stable/20240723 Feb 22, 2025
4 of 5 checks passed
@bnbarham bnbarham deleted the cherry-pick-tmo-retcon-lowering branch February 22, 2025 01:27
@bnbarham
Copy link

The cross PR testing already passed in the Swift repo, we'd get no additional signal from the hung Windows test here. This not being merged was also blocking all of PR testing - so going to go ahead and merge.

Having said that, no one has actually reviewed this. So CC @swiftlang/llvm-project-branch-managers as well (the next PR was reviewed though)

Copy link

@aschwaighofer aschwaighofer left a comment

Choose a reason for hiding this comment

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

I had reviewed this prior to merging. It seems though that I did not via GitHub means -- doing so now.

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.

3 participants