[Openmp-commits] [openmp] [clang] [Clang][OpenMP] Fix ordering of processing of map clauses when mapping a struct. (PR #72410)
Gheorghe-Teodor Bercea via Openmp-commits
openmp-commits at lists.llvm.org
Tue Nov 21 07:03:15 PST 2023
================
@@ -7731,10 +7731,30 @@ class MappableExprsHandler {
IsImplicit, Mapper, VarRef, ForDeviceAddr);
};
+ // Sort all map clauses and make sure all the maps containing array
+ // sections are processed last.
+ llvm::SmallVector<const OMPMapClause *, 16> SortedMapClauses;
----------------
doru1004 wrote:
@alexey-bataev I agree it's not ideal. the problem is related to the order in which the clauses are processed. We cannot process the base struct after we have processed an array section inside the struct.
https://github.com/llvm/llvm-project/pull/72410
More information about the Openmp-commits
mailing list