[flang-commits] [flang] [Flang][OpenMP] Support iterator modifier in map and motion clauses (PR #197757)

via flang-commits flang-commits at lists.llvm.org
Tue Aug 4 19:49:05 PDT 2026


================
@@ -1395,6 +1401,9 @@ class MapInfoFinalizationPass
       // Next, walk `omp.map.info` ops to see if any record members should be
       // implicitly mapped.
       func->walk([&](mlir::omp::MapInfoOp op) {
+        if (isNestedInIterator(op))
----------------
MattPD wrote:

This guard looks redundant, because `isRecordWithAllocatableMember` just below it cannot hold for an iterator map, whose `var_ptr` is always an array base. Is it kept deliberately for symmetry with the other walks?

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


More information about the flang-commits mailing list