Skip to content

[AutoDiff] Fix TBDGen issues for derivative dispatch thunks and method descriptors. #35667

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
Jan 31, 2021

Conversation

rxwei
Copy link
Contributor

@rxwei rxwei commented Jan 30, 2021

  • Add DispatchThunkDerivative and MethodDescriptorDerivative as link entities. The derivative functions of initializers, subscripts, properties, and methods are all methods, so we don't need other link entities for this purpose.
  • Mangle dispatch thunks and method descriptors. Make AutoDiffFunction a context node since it can be nested.

Resolves SR-13866 (rdar://71318828) and SR-13125 (rdar://65240599).

@rxwei
Copy link
Contributor Author

rxwei commented Jan 30, 2021

@swift-ci please test

@rxwei
Copy link
Contributor Author

rxwei commented Jan 30, 2021

@swift-ci please test and merge

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - e90498895115bf0e52bbac20f0aa2207ab011c02

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - e90498895115bf0e52bbac20f0aa2207ab011c02

@rxwei rxwei force-pushed the more-ad-thunks branch 2 times, most recently from cec24e6 to 03fd95e Compare January 31, 2021 00:43
…d descriptors.

- Add `DispatchThunkDerivative` and `MethodDescriptorDerivative` as link entities. The derivative functions of initializers, subscripts, properties, and methods are **all methods**, so we don't need other link entities for this purpose.
- Mangle dispatch thunks and method descriptors. Make `AutoDiffFunction` a context node since it can be nested.

Resolves SR-13866 (rdar://71318828) and SR-13125 (rdar://65240599).
@rxwei
Copy link
Contributor Author

rxwei commented Jan 31, 2021

@swift-ci please test and merge

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