[flang-commits] [flang] [flang][acc] Generate acc.copyout for the reduction clause on compute constructs (PR #144623)
Valentin Clement バレンタイン クレメン via flang-commits
flang-commits at lists.llvm.org
Tue Jun 17 20:47:45 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>(
----------------
clementval wrote:
What if the variable appears in another clause as mentioned in the spec?
https://github.com/llvm/llvm-project/pull/144623
More information about the flang-commits
mailing list