mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
The `differentiability_witness_function` instruction looks up a differentiability witness function (JVP, VJP, or transpose) for a referenced function via SIL differentiability witnesses. Add round-trip parsing/serialization and IRGen tests. Notes: - Differentiability witnesses for linear functions require more support. `differentiability_witness_function [transpose]` instructions do not yet have IRGen. - Nothing currently generates `differentiability_witness_function` instructions. The differentiation transform does, but it hasn't been upstreamed yet. Resolves TF-1141.
61 KiB
61 KiB