[flang-commits] [flang] [mlir] [Flang][OpenMP] Privatize descriptors for assumed shape array maps for performance increase (PR #212336)
Pranav Bhandarkar via flang-commits
flang-commits at lists.llvm.org
Wed Aug 5 21:02:13 PDT 2026
================
@@ -7424,16 +7437,26 @@ static void processMapWithMembersOf(LLVM::ModuleTranslation &moduleTranslation,
llvm::omp::OpenMPOffloadMappingFlags memberOfFlag =
ompBuilder.getMemberOfFlag(combinedInfo.Types.size());
- for (size_t i = 0; i < mapInfoIdx.size(); i++) {
- // Index == 0 is the parent map and if it gets here it's an unattachable
- // type and should have OMP_MAP_TARGET_PARAM applied and no MEMBER_OF flag.
- if (i == 0) {
+
+ // The first index is the parent map, the rest are its members. The parent
+ // normally undergoes the standard parent-with-members mapping, contributing
+ // the MEMBER_OF flag that binds each member to it. The one exception is a
----------------
bhandarkar-pranav wrote:
Got it, now this makes sense to me. So, we still have to emit the parent as a map but not all of its members and it seems it only gets emitted as `OMP_MAP_NONE` after all.
https://github.com/llvm/llvm-project/pull/212336
More information about the flang-commits
mailing list