mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add `linear_function` and `linear_function_extract` instructions. `linear_function` creates a `@differentiable(linear)` function-typed value from an original function operand and a transpose function operand (optional). `linear_function_extract` extracts either the original or transpose function value from a `@differentiable(linear)` function. Resolves TF-1142 and TF-1143.
15 KiB
15 KiB