[clang] [llvm] [Clang][OpenMP] Capture mapped pointers on `target` by reference. (PR #145454)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 26 09:24:38 PDT 2025
================
@@ -8811,8 +8829,19 @@ class MappableExprsHandler {
++EI;
}
}
- llvm::stable_sort(DeclComponentLists, [](const MapData &LHS,
- const MapData &RHS) {
+ llvm::stable_sort(DeclComponentLists, [VD](const MapData &LHS,
+ const MapData &RHS) {
+ // For cases like map(p, p[0], p[0][0]), the shortest map, like map(p)
----------------
alexey-bataev wrote:
1. Not sure splitting is a good idea, we may lose some dependency info potentially, but not sure.
2. What if we have 3-level dependency, will we need the third loop in this case?
https://github.com/llvm/llvm-project/pull/145454
More information about the cfe-commits
mailing list