mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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.
5.0 KiB
5.0 KiB