]> granicus.if.org Git - clang/commit
[OPENMP]Fix handling of the LCVs in loop-based directives.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 21 Nov 2018 19:41:10 +0000 (19:41 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 21 Nov 2018 19:41:10 +0000 (19:41 +0000)
commit0551d7316e608d3cc3efd69418258b69ac2843c6
tree1cb5f023ab265af603568177fb88d88c49dae9bc
parentaa76915b138936e6251de4e27beb465d1411b66e
[OPENMP]Fix handling of the LCVs in loop-based directives.

Loop-control variables with the default data-sharing attributes should
not be captured in the OpenMP region as they are private by default.
Also, default attributes should be emitted for such variables in the
inner OpenMP regions for the correct data sharing during codegen.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@347409 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaOpenMP.cpp
lib/Sema/TreeTransform.h
test/OpenMP/nvptx_target_teams_distribute_codegen.cpp [new file with mode: 0644]