[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.