Skip to content

[AutoDiff] Fix derivative generic signature same-type requirements. #32803

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
Jul 10, 2020

Conversation

dan-zheng
Copy link
Contributor

Fix SILGen for @derivative attributes where the derivative generic signature:

  1. Is equal to the original generic signature.
  2. Has all concrete generic parameters (i.e. all generic parameters are bound to concrete types via
    same-type requirements).

SILGen should emit a differentiability witness with no generic signature.
This is already done for @differentiable attributes: #28772.

Resolves TF-1292.

Fix SILGen for `@derivative` attributes where the derivative generic signature
is equal to the original generic signature and has all concrete generic
parameters (i.e. all generic parameters are bound to concrete types via
same-type requirements).

SILGen should emit a differentiability witness with no generic signature.
This is already done for `@differentiable` attributes.

Resolves TF-1292.
@dan-zheng dan-zheng requested review from rxwei and marcrasi July 10, 2020 00:15
@dan-zheng
Copy link
Contributor Author

@swift-ci Please smoke test

@dan-zheng dan-zheng merged commit 383482b into swiftlang:master Jul 10, 2020
@dan-zheng dan-zheng deleted the TF-1292 branch July 10, 2020 03:02
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.

2 participants