[llvm-branch-commits] [Flang][OpenMP] Derived type explicit allocatable member mapping (PR #111192)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Oct 24 05:55:34 PDT 2024


================
@@ -145,11 +146,174 @@ createMapInfoOp(fir::FirOpBuilder &builder, mlir::Location loc,
       builder.getIntegerAttr(builder.getIntegerType(64, false), mapType),
       builder.getAttr<mlir::omp::VariableCaptureKindAttr>(mapCaptureType),
       builder.getStringAttr(name), builder.getBoolAttr(partialMap));
-
   return op;
 }
 
-static int
+omp::ObjectList gatherObjects(omp::Object obj,
----------------
agozillon wrote:

Opted to call it gatherObjectsOf, as it does include the passed in object itself! Also might be worth noting it can be used with things other than derived types, i.e. arrays or common block members, it's only really utilised for derived types just now though so happy to change the argument name! 

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


More information about the llvm-branch-commits mailing list