-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Add AST representation for coroutines #78508
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
base: main
Are you sure you want to change the base?
Conversation
@swift-ci please test |
This is a proof-of-concept PR adding AST representation for coroutines and making use of it for array subscript modify accessor differentiation. Further background at https://forums.swift.org/t/pitch-yield-once-functions-first-class-coroutines/77081 |
@swift-ci please test |
Let's get this one rebased and tested now that #78794 has been merged! 🎉 |
@swift-ci please test |
Rebased applying suggestions from the code review. Also, the commits were rearranged, so first commits in the stack represent common changes. So far the only way to invoke all the code is via autodiff we do not have a Swift way to invoke coroutines, only define them. |
Please test with following pull request: swiftlang/llvm-project#11396 |
Make use of it to differentiate array subscript modify accessor.