Skip to content

Conversation

asl
Copy link
Contributor

@asl asl commented Jan 9, 2025

Make use of it to differentiate array subscript modify accessor.

@asl
Copy link
Contributor Author

asl commented Jan 9, 2025

@swift-ci please test

@asl
Copy link
Contributor Author

asl commented Jan 9, 2025

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

@asl
Copy link
Contributor Author

asl commented Jan 9, 2025

swiftlang/swift-syntax#2932

@swift-ci please test

@ahoppen ahoppen removed their request for review January 9, 2025 13:06
@JaapWijnen
Copy link
Contributor

Let's get this one rebased and tested now that #78794 has been merged! 🎉

@asl
Copy link
Contributor Author

asl commented Sep 12, 2025

@swift-ci please test

@asl
Copy link
Contributor Author

asl commented Sep 12, 2025

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.

@asl
Copy link
Contributor Author

asl commented Sep 12, 2025

Please test with following pull request: swiftlang/llvm-project#11396
@swift-ci please test

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.

4 participants