[Mlir-commits] [mlir] [openmp] [flang] [Flang][OpenMP] Initial mapping of Fortran pointers and allocatables for target devices (PR #71766)
    Slava Zakharin 
    llvmlistbot at 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 Mlir-commits
mailing list