]> granicus.if.org Git - clang/commit
Merging r366474:
authorHans Wennborg <hans@hanshq.net>
Mon, 22 Jul 2019 17:42:16 +0000 (17:42 +0000)
committerHans Wennborg <hans@hanshq.net>
Mon, 22 Jul 2019 17:42:16 +0000 (17:42 +0000)
commitbff373b9ff174cc86701003b13fdbf16f88f077d
tree3ae75ad4d77cf56a90f8c63dc5d0c55deb2a4ba9
parentf6da3d966d6458bb8f722654c3b154209967a45c
Merging r366474:
------------------------------------------------------------------------
r366474 | abataev | 2019-07-18 19:49:13 +0200 (Thu, 18 Jul 2019) | 8 lines

[OPENMP]Provide correct data sharing attributes for loop control
variables.

Loop control variables are private in loop-based constructs and we shall
take this into account when generate the code for inner constructs.
Currently, those variables are reported as shared in many cases. Moved
the analysis of the data-sharing attributes of the loop control variable
to an early semantic stage to correctly handle their attributes.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_90@366705 91177308-0d34-0410-b5e6-96231b3b80d8
21 files changed:
lib/Sema/SemaOpenMP.cpp
test/OpenMP/distribute_parallel_for_firstprivate_messages.cpp
test/OpenMP/distribute_parallel_for_simd_firstprivate_messages.cpp
test/OpenMP/distribute_simd_firstprivate_messages.cpp
test/OpenMP/distribute_simd_misc_messages.c
test/OpenMP/for_misc_messages.c
test/OpenMP/for_simd_misc_messages.c
test/OpenMP/parallel_for_firstprivate_messages.cpp
test/OpenMP/parallel_for_misc_messages.c
test/OpenMP/parallel_for_simd_firstprivate_messages.cpp
test/OpenMP/simd_misc_messages.c
test/OpenMP/target_parallel_for_firstprivate_messages.cpp
test/OpenMP/target_parallel_for_misc_messages.c
test/OpenMP/target_parallel_for_simd_firstprivate_messages.cpp
test/OpenMP/target_parallel_for_simd_misc_messages.c
test/OpenMP/target_simd_firstprivate_messages.cpp
test/OpenMP/target_teams_distribute_parallel_for_simd_misc_messages.c
test/OpenMP/target_teams_distribute_simd_misc_messages.c
test/OpenMP/task_codegen.c
test/OpenMP/taskloop_firstprivate_messages.cpp
test/OpenMP/taskloop_simd_firstprivate_messages.cpp