[flang-commits] [openmp] [flang] [mlir] [Flang][OpenMP] Initial mapping of Fortran pointers and allocatables for target devices (PR #71766)

via flang-commits flang-commits at lists.llvm.org
Tue Nov 28 04:33:59 PST 2023


================
@@ -2718,12 +2732,26 @@ genTargetOp(Fortran::lower::AbstractConverter &converter,
           }
         }
 
-        mlir::Value mapOp = createMapInfoOp(
-            converter.getFirOpBuilder(), baseOp.getLoc(), baseOp, name, bounds,
-            static_cast<
-                std::underlying_type_t<llvm::omp::OpenMPOffloadMappingFlags>>(
-                mapFlag),
-            captureKind, baseOp.getType());
+        mlir::Value mapOp;
+        if (fir::isPointerType(baseOp.getType()) ||
----------------
agozillon wrote:

Not in this case actually, thank you for the catch! There was previously (was using a varPtrPtr in one and not the other) and forgot to collapse them into one again!

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


More information about the flang-commits mailing list