[flang-commits] [flang] [Flang][OpenMP] Skip intermediate map generation for motion modifier map directives (PR #177737)

Sergio Afonso via flang-commits flang-commits at lists.llvm.org
Mon Jan 26 02:28:59 PST 2026


================
@@ -1559,7 +1559,8 @@ bool ClauseProcessor::processMotionClauses(lower::StatementContext &stmtCtx,
     if (expectation && *expectation == omp::clause::To::Expectation::Present)
       mapTypeBits |= mlir::omp::ClauseMapFlags::present;
     processMapObjects(stmtCtx, clauseLocation, objects, mapTypeBits,
-                      parentMemberIndices, result.mapVars, mapSymbols);
+                      parentMemberIndices, result.mapVars, mapSymbols, "",
+                      true);
----------------
skatrak wrote:

```suggestion
                      parentMemberIndices, result.mapVars, mapSymbols,
                      /*mapperIdNameRef=*/ "", /*isMotionModifier=*/true);
```

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


More information about the flang-commits mailing list