swift
5c03b64e - [AutoDiff] Improve documentation for derivative function SILGen. (#27753)

Commit
5 years ago
[AutoDiff] Improve documentation for derivative function SILGen. (#27753) Improve documentation and naming for derivative function SILGen. SILGen generates thunks for derivative functions registered via `@differentiable` and `@differentiating` attributes. Currently, two SILGen derivative thunk kinds exist: - `SILGenModule::getOrCreateAutoDiffDerivativeForwardingThunk` - This creates a simple thunk that forwards arguments and returns results. This is generated when no reabstraction or self reordering is necessary. - `SILGenModule::getOrCreateAutoDiffDerivativeReabstractionThunk` - This creates a thunk that performs reabstraction and/or self reordering.
Author
Parents
Loading