[llvm-branch-commits] [flang] [Flang][OpenMP][Offload] Modify MapInfoFinalization to handle attach mapping and 6.1's ref_* and attach map keywords (PR #177715)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Apr 8 10:09:26 PDT 2026


================
@@ -496,6 +734,48 @@ class MapInfoFinalizationPass
     return false;
   }
 
+  [[maybe_unused]] mlir::Operation *genImplicitAttachMap(
+      mlir::omp::MapInfoOp descMapOp, mlir::Value descriptor,
+      llvm::SmallVectorImpl<ParentAndPlacement> &mapMemberUsers,
+      mlir::Operation *target, fir::FirOpBuilder &builder,
+      mlir::omp::ClauseMapFlags refFlagType, bool isAttachAlways = false,
+      mlir::Value reuseBaseAddr = mlir::Value{}) {
+    auto baseAddrAddr =
----------------
agozillon wrote:

I think baseAddrAddr is correct in the context of the base address of the pointer inside of the descriptor, but happy to shorthand it to base address if we wish :-) 

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


More information about the llvm-branch-commits mailing list