[flang-commits] [flang] [mlir] [flang][OpenACC] Fix implicit data mapping for deviceptr inside host_data (PR #192710)

Razvan Lupusoru via flang-commits flang-commits at lists.llvm.org
Wed Apr 29 08:23:29 PDT 2026


================
@@ -53,6 +53,9 @@ void registerOpenACCExtensions(mlir::DialectRegistry &registry) {
         PartialEntityAccessModel<fir::CoordinateOp>>(*ctx);
     fir::DeclareOp::attachInterface<PartialEntityAccessModel<fir::DeclareOp>>(
         *ctx);
+    fir::BoxAddrOp::attachInterface<PartialEntityAccessModel<fir::BoxAddrOp>>(
----------------
razvanlupusoru wrote:

As I thought about this deeper, attaching PartialEntityAccess interface to fir.box_addr is also not appropriate. Because fir.box_addr and its parent entity are not part of the same structure - they are non-overlapping addresses. This interface would make sense only if FIR had fir.box_addr_addr which allows it get the address of the box's field location.

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


More information about the flang-commits mailing list