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

Slava Zakharin via flang-commits flang-commits at lists.llvm.org
Tue Dec 5 16:56:38 PST 2023


================
@@ -330,6 +330,13 @@ bool isAllocatableOrPointerArray(mlir::Type ty) {
   return false;
 }
 
+bool isTypeWithDescriptor(mlir::Type ty) {
+  if (fir::isPointerType(ty) || fir::isAllocatableType(ty) ||
----------------
vzakhari wrote:

It can probably be done with just `isa<BaseBoxType>(unwrapRefType(ty))`

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


More information about the flang-commits mailing list