]> granicus.if.org Git - clang/commit
[OPENMP] Generate implicit map|firstprivate clauses for target-based
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 26 Sep 2017 13:47:31 +0000 (13:47 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 26 Sep 2017 13:47:31 +0000 (13:47 +0000)
commitbd9a973c97fa4fee9e45b303ac7fbf83cf7a88d1
tree9c8b65cd62fb86e4d70641277370815127687305
parent4df21e70e6e28a99f222dd92546f04fbd0a49ecf
[OPENMP] Generate implicit map|firstprivate clauses for target-based
directives.

If the variable is used in the target-based region but is not found in
any private|mapping clause, then generate implicit firstprivate|map
clauses for these implicitly mapped variables.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@314205 91177308-0d34-0410-b5e6-96231b3b80d8
15 files changed:
lib/CodeGen/CGOpenMPRuntime.cpp
lib/CodeGen/CGStmtOpenMP.cpp
lib/CodeGen/CodeGenFunction.h
lib/Sema/SemaOpenMP.cpp
test/OpenMP/target_codegen.cpp
test/OpenMP/target_firstprivate_codegen.cpp
test/OpenMP/target_map_codegen.cpp
test/OpenMP/target_map_messages.cpp
test/OpenMP/target_parallel_codegen.cpp
test/OpenMP/target_teams_codegen.cpp
test/OpenMP/teams_distribute_parallel_for_shared_messages.cpp
test/OpenMP/teams_distribute_parallel_for_simd_shared_messages.cpp
test/OpenMP/teams_distribute_shared_messages.cpp
test/OpenMP/teams_distribute_simd_shared_messages.cpp
test/OpenMP/teams_shared_messages.cpp