forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoDiff upstream] Add SIL transpose function type calculation. (swi…
…ftlang#29755) Add `SILFunctionType::getAutoDiffTransposeFunctionType`. It computes the transpose `SILFucntionType` for an original `SILFunctionType`, given: - Linearity parameter indices - Transpose function generic signature (optional) - Other auxiliary parameters Add doc comments explaining typing rules, preconditions, and other details. Add `isTranspose` flag to `autodiff::getConstrainedDerivativeGenericSignature`. Partially resolves TF-1125. Unblocks TF-1141: upstream `differentiability_witness_function` instruction.
- Loading branch information
Showing
4 changed files
with
146 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters