]> granicus.if.org Git - clang/commit
[OPENMP] Static variables on device must be externally visible.
authorAlexey Bataev <a.bataev@hotmail.com>
Fri, 27 Jul 2018 17:37:32 +0000 (17:37 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Fri, 27 Jul 2018 17:37:32 +0000 (17:37 +0000)
commit3d38d9f1f0abbc8f2279786a736712b6e8889272
treee7928692d72fe7480cd885bee69d1a501be769df
parentf0389c4d454a484b8c48b1e5c4d9aafa5444aed6
[OPENMP] Static variables on device must be externally visible.

Do not mark static variable as internal on the device as they must be
visible from the host to be mapped correctly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@338139 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTContext.cpp
test/OpenMP/declare_target_codegen.cpp
test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp