mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add the `@differentiable` function conversion pipeline: - New expressions that convert between `@differentiable`, `@differentiable(linear)`, and non-`@differentiable` functions: - `DifferentiableFunction` - `LinearFunction` - `DifferentiableFunctionExtractOriginal` - `LinearFunctionExtractOriginal` - `LinearToDifferentiableFunction` - All the AST handling (e.g. printing) necessary for those expressions. - SILGen for those expressions. - CSApply code that inserts these expressions to implicitly convert between the various function types. - Sema tests for the implicit conversions. - SILGen tests for the SILGen of these expressions. Resolves TF-833.
105 KiB
105 KiB