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

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Aug 21 05:40:24 PDT 2025


================
@@ -2979,39 +2979,61 @@ static int getMapDataMemberIdx(MapInfoData &mapData, omp::MapInfoOp memberOp) {
   return std::distance(mapData.MapClause.begin(), res);
 }
 
-static omp::MapInfoOp getFirstOrLastMappedMemberPtr(omp::MapInfoOp mapInfo,
-                                                    bool first) {
-  ArrayAttr indexAttr = mapInfo.getMembersIndexAttr();
-  // Only 1 member has been mapped, we can return it.
-  if (indexAttr.size() == 1)
-    return cast<omp::MapInfoOp>(mapInfo.getMembers()[0].getDefiningOp());
+static void sortMapIndices(llvm::SmallVector<size_t> &indices,
----------------
agozillon wrote:

Or, at least it did last I checked! But haven't paid too much attention recently :D There's a chance @skatrak cleaned it up at some point in one of his refactors.

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


More information about the llvm-branch-commits mailing list