]> granicus.if.org Git - clang/commit
[OPENMP]Use the attributes for dso locality when building for device.
authorAlexey Bataev <a.bataev@hotmail.com>
Tue, 21 May 2019 18:20:08 +0000 (18:20 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Tue, 21 May 2019 18:20:08 +0000 (18:20 +0000)
commit432603d94f05f7b0efea0cb35f41ff69c793efba
treecbc86dac4797f4a051c3b26290a9a4ea32a7e7c9
parent3541ea8ff78a71cfb4f30a4371cdc136b5bbe013
[OPENMP]Use the attributes for dso locality when building for device.

Currently, we ignore all dso locality attributes/info when building for
the device and thus all symblos are externally visible and can be
preemted at the runtime. It may lead to incorrect results. We need to
follow the same logic, compiler uses for static/pie builds.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@361283 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/OpenMP/declare_target_codegen.cpp
test/OpenMP/nvptx_allocate_codegen.cpp
test/OpenMP/nvptx_declare_target_var_ctor_dtor_codegen.cpp
test/OpenMP/nvptx_target_codegen.cpp
test/OpenMP/nvptx_unsupported_type_codegen.cpp