File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
mlir/include/mlir/Dialect/OpenMP Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -949,6 +949,19 @@ class OpenMP_ReductionClauseSkip<
949
949
}];
950
950
951
951
// Description varies depending on the operation.
952
+ let description = [{
953
+ Reductions can be performed by specifying reduction accumulator variables in
954
+ `reduction_vars`, symbols referring to reduction declarations in the
955
+ `reductions` attribute, and whether the reduction variable should be passed
956
+ into the reduction region by value or by reference in
957
+ `reduction_vars_byref`. Each reduction is identified by the accumulator it
958
+ uses and accumulators must not be repeated in the same reduction. A private
959
+ variable corresponding to the accumulator is used in place of the
960
+ accumulator inside the body of the operation. The reduction declaration
961
+ specifies how to combine the values from each iteration/section/thread
962
+ defined by the operation's region into the final value, which is available
963
+ in the accumulator after they all complete.
964
+ }];
952
965
}
953
966
954
967
def OpenMP_ReductionClause : OpenMP_ReductionClauseSkip<>;
You can’t perform that action at this time.
0 commit comments