[Mlir-commits] [mlir] [OpenACC][MLIR] clone private operands during ACCIfClauseLowering (PR #177458)

Valentin Clement バレンタイン クレメン llvmlistbot at llvm.org
Thu Jan 22 18:00:08 PST 2026


================
@@ -150,7 +151,11 @@ void ACCIfClauseLowering::lowerIfClauseForComputeConstruct(
     if (Operation *defOp = operand.getDefiningOp())
       firstprivateOps.push_back(defOp);
   }
-
+  // Collect private operations
+  for (Value operand : computeConstructOp.getPrivateOperands()) {
+    if (Operation *defOp = operand.getDefiningOp())
+      privateOps.push_back(defOp);
+  }
----------------
clementval wrote:

no braces

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


More information about the Mlir-commits mailing list