@@ -1146,9 +1146,11 @@ class ADContext {
1146
1146
// / purposes.
1147
1147
void foldDifferentiableFunctionExtraction (DifferentiableFunctionInst *source);
1148
1148
1149
- // / Get or create an associated function index subset thunk from
1149
+ // / Get or create an associated function parameter index subset thunk from
1150
1150
// / `actualIndices` to `desiredIndices` for the given associated function
1151
- // / value and original function operand.
1151
+ // / value and original function operand. Returns a pair of the parameter
1152
+ // / index subset thunk and its interface substitution map (used to partially
1153
+ // / apply the thunk).
1152
1154
// / Calls `getOrCreateSubsetParametersThunkForLinearMap` to thunk the linear
1153
1155
// / map returned by the associated function.
1154
1156
std::pair<SILFunction *, SubstitutionMap>
@@ -1157,9 +1159,11 @@ class ADContext {
1157
1159
AutoDiffAssociatedFunctionKind kind, SILAutoDiffIndices desiredIndices,
1158
1160
SILAutoDiffIndices actualIndices);
1159
1161
1160
- // / Get or create an associated function index subset thunk from
1162
+ // / Get or create an associated function parameter index subset thunk from
1161
1163
// / `actualIndices` to `desiredIndices` for the given associated function
1162
- // / value and original function operand.
1164
+ // / value and original function operand. Returns a pair of the parameter
1165
+ // / index subset thunk and its interface substitution map (used to partially
1166
+ // / apply the thunk).
1163
1167
std::pair<SILFunction *, SubstitutionMap>
1164
1168
getOrCreateSubsetParametersThunkForLinearMap (
1165
1169
SILFunction *assocFn, CanSILFunctionType linearMapType,
0 commit comments