[OPENMP] Allow value of thread local variables in target regions.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 24 May 2017 16:00:02 +0000 (16:00 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 24 May 2017 16:00:02 +0000 (16:00 +0000)
commite4bf08d44be25d4de22e7d5442d357fd97bf71fb
tree66dc24022af41e1e3aff3829ea22b20b58ce290a
parentbee521a5c22741cf01852a9704cdf5e0f87e9ae3
[OPENMP] Allow value of thread local variables in target regions.

If the variable is marked as TLS variable and target device does not
support TLS, the error is emitted for the variable even if it is not
used in target regions. Patch fixes this and allows to use the values of
the TLS variables in target regions.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@303768 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Sema/SemaDecl.cpp
test/OpenMP/nvptx_target_codegen.cpp