[flang-commits] [mlir] [flang] [openmp] [Flang][OpenMP] Initial mapping of Fortran pointers and allocatables for target devices (PR #71766)
Razvan Lupusoru via flang-commits
flang-commits at lists.llvm.org
Mon Nov 27 17:17:46 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()) ||
----------------
razvanlupusoru wrote:
Is there a difference between the if and else cases?
https://github.com/llvm/llvm-project/pull/71766
More information about the flang-commits
mailing list