]> granicus.if.org Git - clang/commit
[OPENMP]Provide correct data sharing attributes for loop control
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 18 Jul 2019 17:49:13 +0000 (17:49 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 18 Jul 2019 17:49:13 +0000 (17:49 +0000)
commit2bc7885ac1167b5fc89f6daef73699a035cf8cc5
tree350c23f8deb915e50b4ea39f440728970569d091
parentf44f939e355c13ccff5bc7f67b6ea957ff6f4c41
[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/trunk@366474 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