[OPENMP, NVPTX] Globalization of the private redeclarations.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 20 Mar 2018 14:45:59 +0000 (14:45 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 20 Mar 2018 14:45:59 +0000 (14:45 +0000)
commit63cc8e96c331b536eb59bc543b10cc4036e1c2a8
tree2d5b6429b8824aee358f1b5952c470d1f6a98227
parent3f0ea37b8763d5d7dd2fd9b1d6917f58cde071ff
[OPENMP, NVPTX] Globalization of the private redeclarations.

If the generic codegen is enabled and private copy of the original
variable escapes the declaration context, this private copy should be
globalized just like it was the original variable.

llvm-svn: 327985
clang/include/clang/Basic/Attr.td
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.h
clang/lib/CodeGen/CGStmtOpenMP.cpp
clang/lib/Sema/SemaOpenMP.cpp
clang/test/OpenMP/nvptx_data_sharing.cpp