Skip to content

[CoroutineAccessors] Use swiftcorocc if available. #79685

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

Conversation

nate-chandler
Copy link
Contributor

When it's available, use an open-coded allocator function that returns an alloca without popping if the allocator is nullptr and otherwise calls swift_coro_alloc. When it's not available, use the malloc allocator in the synchronous context.

When it's available, use an open-coded allocator function that returns
an alloca without popping if the allocator is nullptr and otherwise
calls swift_coro_alloc.  When it's not available, use the malloc
allocator in the synchronous context.
@nate-chandler nate-chandler force-pushed the general-coro/20250227/1 branch from 420d8cc to d1f1b4c Compare February 28, 2025 02:21
@nate-chandler
Copy link
Contributor Author

swiftlang/llvm-project#10132

@swift-ci please test

@nate-chandler
Copy link
Contributor Author

swiftlang/llvm-project#10132

@swift-ci please test source compatibility

@nate-chandler
Copy link
Contributor Author

swiftlang/llvm-project#10132

@swift-ci please apple silicon benchmark

Copy link
Contributor

@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.

Nice

@nate-chandler
Copy link
Contributor Author

swiftlang/llvm-project#10132

@swift-ci please test macos platform

@compnerd
Copy link
Member

Do you have a pointer to the LLVM side of this change? We need to reach out to microsoft to allocate the additional calling convention in the name decoration :(

@aschwaighofer
Copy link
Contributor

... it is understood by all involved that these drafts will be followed up by tests

@aschwaighofer
Copy link
Contributor

@compnerd I don't think the clang frontend change exists yet

@nate-chandler
Copy link
Contributor Author

swiftlang/llvm-project#10132

@swift-ci please smoke test

@nate-chandler nate-chandler marked this pull request as ready for review February 28, 2025 20:06
@nate-chandler nate-chandler merged commit f8b60bb into swiftlang:main Feb 28, 2025
5 of 8 checks passed
@nate-chandler nate-chandler deleted the general-coro/20250227/1 branch February 28, 2025 20:06
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