Skip to content

[AutoDiff upstream] Add SIL differentiability witness IRGen. #29704

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

Conversation

dan-zheng
Copy link
Contributor

SIL differentiability witnesses are a new top-level SIL construct mapping
an "original" SIL function and derivative configuration to derivative SIL
functions.

This patch adds SILDifferentiabilityWitness IRGen.

SILDifferentiabilityWitness has a fixed { i8*, i8* } layout:
JVP and VJP derivative function pointers.

Resolves TF-1146.

SIL differentiability witnesses are a new top-level SIL construct mapping
an "original" SIL function and derivative configuration to derivative SIL
functions.

This patch adds `SILDifferentiabilityWitness` IRGen.

`SILDifferentiabilityWitness` has a fixed `{ i8*, i8* }` layout:
JVP and VJP derivative function pointers.

Resolves TF-1146.
@dan-zheng
Copy link
Contributor Author

@swift-ci Please smoke test

@dan-zheng dan-zheng force-pushed the autodiff-upstream-sil-diff-witness branch from 2b73924 to 49fa175 Compare February 7, 2020 18:12
@dan-zheng dan-zheng merged commit a174243 into swiftlang:master Feb 7, 2020
@dan-zheng dan-zheng deleted the autodiff-upstream-sil-diff-witness branch February 7, 2020 22:10
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