[flang-commits] [flang] [flang][acc] Generate acc.copyout for the reduction clause on compute constructs (PR #144623)
via flang-commits
flang-commits at lists.llvm.org
Wed Jun 18 00:37:05 PDT 2025
================
@@ -3038,6 +3042,8 @@ static Op createComputeOp(
builder, nocreateEntryOperands, /*structured=*/true);
genDataExitOperations<mlir::acc::PresentOp, mlir::acc::DeleteOp>(
builder, presentEntryOperands, /*structured=*/true);
+ genDataExitOperations<mlir::acc::ReductionOp, mlir::acc::CopyoutOp>(
----------------
khaki3 wrote:
(Yet, you might see the reduction clause among others in the data operands of the compute constructs. This PR does not change the situation. The order of data-action operands means nothing as described in https://github.com/llvm/llvm-project/pull/139723. It is a user's responsibility to consider the order of the data operands of the compute constructs.)
https://github.com/llvm/llvm-project/pull/144623
More information about the flang-commits
mailing list