Skip to content

Commit 6f3156c

Browse files
committed
Update doc comments.
1 parent 1c7b1aa commit 6f3156c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lib/SILOptimizer/Mandatory/Differentiation.cpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,9 +1146,11 @@ class ADContext {
11461146
/// purposes.
11471147
void foldDifferentiableFunctionExtraction(DifferentiableFunctionInst *source);
11481148

1149-
/// Get or create an associated function index subset thunk from
1149+
/// Get or create an associated function parameter index subset thunk from
11501150
/// `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).
11521154
/// Calls `getOrCreateSubsetParametersThunkForLinearMap` to thunk the linear
11531155
/// map returned by the associated function.
11541156
std::pair<SILFunction *, SubstitutionMap>
@@ -1157,9 +1159,11 @@ class ADContext {
11571159
AutoDiffAssociatedFunctionKind kind, SILAutoDiffIndices desiredIndices,
11581160
SILAutoDiffIndices actualIndices);
11591161

1160-
/// Get or create an associated function index subset thunk from
1162+
/// Get or create an associated function parameter index subset thunk from
11611163
/// `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).
11631167
std::pair<SILFunction *, SubstitutionMap>
11641168
getOrCreateSubsetParametersThunkForLinearMap(
11651169
SILFunction *assocFn, CanSILFunctionType linearMapType,

0 commit comments

Comments
 (0)