[OPENMP] Generate threadprivates as TLS variables by default.
authorAlexey Bataev <a.bataev@hotmail.com>
Thu, 10 Sep 2015 12:06:58 +0000 (12:06 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Thu, 10 Sep 2015 12:06:58 +0000 (12:06 +0000)
commit6a43c00ebd7086d9e4fe971063120487ee8905a2
treeb26b4054f841348e99074ed1c3572d993dba51f9
parent8f870499ab80036b1c5fa6f72930c6fdb3ec88a6
[OPENMP] Generate threadprivates as TLS variables by default.
If target supports TLS all threadprivates are generated as TLS. If target does not support TLS, use runtime calls for proper codegen of threadprivate variables.

llvm-svn: 247273
clang/lib/Driver/Tools.cpp
clang/test/OpenMP/driver.c [new file with mode: 0644]