-
Notifications
You must be signed in to change notification settings - Fork 10.6k
Support differentiation of wrapped value modify accessors #78794
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
Conversation
@swift-ci please test |
Tagging @JaapWijnen |
The addition of derivative to |
@swift-ci please test linux |
c675009
to
b4a8fc0
Compare
@swift-ci please test |
ping |
@swiftlang/standard-librarians Are you ok with stdlib changes? They are internal as only add couple of missed derivatives to stdlib/private/DifferentiationUnittest/DifferentiationUnittest.swift.gyb |
b4a8fc0
to
63ab094
Compare
@swift-ci please test |
63ab094
to
6fac043
Compare
@swift-ci please test |
@rjmccall another friendly ping |
@rjmccall @eeckstein ping |
|
||
if (!isAbort) { | ||
auto resultType = call->getType(); | ||
Explosion e; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was likely some mis-merge from the previous PRs. Unfortunately, it requires proper non-trivial coroutine result to see the difference. Now this codepath is executed via tests.
@rjmccall @eeckstein Will you please review IRGen changes? They are necessary to ensure that coroutine result is lowered in an appropriate (caller) context. In addition there is one mismerge fix that is now covered by the tests. |
@aschwaighofer would be a better person than me to review this |
@aschwaighofer Will you please take a look? |
@aschwaighofer Will you please take a look on irgen changes? There are comments there explaining them. Thanks! |
@aschwaighofer @rjmccall ping |
Any smallest chance to get irgen fixes reviewed? @rjmccall @aschwaighofer @tkremenek @DougGregor ? |
I’m looking to see if we can get a review soon. |
Thanks a lot, much appreciated! |
Thanks! Really appreciate it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The IRGen changes look good to me.
differentiation of _modify accessor for wrapped values. Fixes #55084
6fac043
to
b5cceba
Compare
Thanks! |
@swift-ci please smoke test |
@swift-ci please smoke test macos |
Some fixes for coroutines with normal results and
partial_apply
of coroutines were required.Fixes #55084