[flang] [llvm] [mlir] [MLIR][OpenMP] Introduce overlapped record type map support (PR #119588)
Sergio Afonso via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 24 04:42:49 PST 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,
----------------
skatrak wrote:
Yeah, at the moment this file is all over the place regarding the use of namespaces for these casting utilities. We can address that separately.
https://github.com/llvm/llvm-project/pull/119588
More information about the llvm-commits
mailing list