[llvm-branch-commits] [flang] [llvm] [mlir] [OpenMP][MLIR] Modify OpenMP Dialect lowering to support attach mapping (PR #179023)

Pranav Bhandarkar via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Apr 15 13:57:10 PDT 2026


================
@@ -4587,10 +4601,16 @@ static void collectMapDataFromMapOperands(
   // Process MapOperands
   for (Value mapValue : mapVars) {
     auto mapOp = cast<omp::MapInfoOp>(mapValue.getDefiningOp());
-    Value offloadPtr =
-        mapOp.getVarPtrPtr() ? mapOp.getVarPtrPtr() : mapOp.getVarPtr();
+    bool isRefPtrOrPteeMapWithAttach =
+        checkRefPtrOrPteeMapWithAttach(mapOp.getMapType());
----------------
bhandarkar-pranav wrote:

I meant `checkRefPtrOrPteeMapWithAttach`. It felt to me that it would be used often but if this is the only place, then i'd say let it be for now. We can consider adding it as a member of the Op if we find more uses for it in time.

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


More information about the llvm-branch-commits mailing list