[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:27:49 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:

Nice catch. Now, the copyout for reduction appears first.

https://github.com/llvm/llvm-project/pull/144623


More information about the flang-commits mailing list