[OPENMP] Treat local variables in CUDA mode as thread local.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 2 Mar 2018 17:17:12 +0000 (17:17 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 2 Mar 2018 17:17:12 +0000 (17:17 +0000)
commit852525de25aa24c93a8193e56096d44230c25e7a
treefc5c2027f1830d4964c3ca9bf2a1e465472d440a
parentb9699c009df52abde18f9c95ff54414e99ff9922
[OPENMP] Treat local variables in CUDA mode as thread local.

In CUDA mode all local variables are actually thread
local|threadprivate, not private, and, thus, they cannot be shared
between threads|lanes.

llvm-svn: 326590
clang/include/clang/Driver/Options.td
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/nvptx_target_cuda_mode_messages.cpp [new file with mode: 0644]