[flang-commits] [openmp] [mlir] [flang] [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:37:22 PST 2023


================
@@ -1266,4 +1266,7 @@ void FIROpsDialect::registerTypes() {
       OpenMPPointerLikeModel<fir::LLVMPointerType>>(*getContext());
   fir::LLVMPointerType::attachInterface<
       OpenACCPointerLikeModel<fir::LLVMPointerType>>(*getContext());
+
+  fir::BoxType::attachInterface<OpenMPPointerLikeModel<fir::BoxType>>(
----------------
agozillon wrote:

Yes, it isn't quite right (although, if we were going to keep it I'd have suggested a different name like OpenMPMapLikeModel to cover a wider range of types), I believe there's a way around adding it if I make the CodeGen pass a little more complex which should be fine, if we did end up going down this route. But I'll investigate the addr_addr of route. 

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


More information about the flang-commits mailing list