[llvm-branch-commits] [OpenMP][MLIR] Extend record member map support for omp dialect to LLVM-IR (PR #82852)
Sergio Afonso via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Apr 23 07:21:33 PDT 2024
================
@@ -2283,16 +2386,12 @@ static void processMapMembersWithParent(
for (auto mappedMembers : parentClause.getMembers()) {
auto memberClause =
mlir::dyn_cast<mlir::omp::MapInfoOp>(mappedMembers.getDefiningOp());
- int memberDataIdx = -1;
- for (size_t i = 0; i < mapData.MapClause.size(); ++i) {
- if (mapData.MapClause[i] == memberClause)
- memberDataIdx = i;
- }
+ int memberDataIdx = getMapDataMemberIdx(mapData, memberClause);
assert(memberDataIdx >= 0 && "could not find mapped member of structure");
// Same MemberOfFlag to indicate its link with parent and other members
- // of, and we flag that it's part of a pointer and object coupling.
+ // of
----------------
skatrak wrote:
```suggestion
// of.
```
https://github.com/llvm/llvm-project/pull/82852
More information about the llvm-branch-commits
mailing list