[flang-commits] [flang] [mlir] [MLIR][OpenMP] Normalize handling of entry block arguments (PR #109808)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Wed Sep 25 09:10:18 PDT 2024


================
@@ -587,6 +578,15 @@ static void printParallelRegion(OpAsmPrinter &p, Operation *op, Region &region,
                               privateTypes, isByRef, privateSyms);
   }
 
+  if (reductionSyms) {
+    auto *argsBegin = region.front().getArguments().begin();
+    MutableArrayRef argsSubrange(argsBegin + privateVars.size(),
+                                 argsBegin + privateVars.size() +
+                                     reductionTypes.size());
----------------
skatrak wrote:

That's true, I just didn't bother here because the function is deleted in the following patch. Let me know if you'd prefer this to be updated anyways.

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


More information about the flang-commits mailing list