[flang] [llvm] [mlir] [MLIR][OpenMP] Introduce overlapped record type map support (PR #119588)

Jan Leyonberg via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 7 07:11:46 PDT 2025


================
@@ -4129,6 +4154,87 @@ calculateBoundsOffset(LLVM::ModuleTranslation &moduleTranslation,
   return idx;
 }
 
+static void getAsIntegers(ArrayAttr values, llvm::SmallVector<int64_t> &ints) {
+  llvm::transform(values, std::back_inserter(ints), [](Attribute value) {
+    return cast<IntegerAttr>(value).getInt();
+  });
+};
+
+// Gathers members that are overlapping in the parent, excluding members that
+// themselves overlap, keeping the top-most (closest to parents level) map.
+static void
+getOverlappedMembers(llvm::SmallVectorImpl<size_t> &overlapMapDataIdxs,
+                     MapInfoData &mapData, omp::MapInfoOp parentOp) {
----------------
jsjodin wrote:

mapData doesn't seem to be used anymore so I think it can be removed.

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


More information about the llvm-commits mailing list