Patch by Martell Malone (posted cfe-commits)
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
It looks like LLVM has TLS support, in lib\Target\X86\X86ISelLowering.cpp:8550
if (Subtarget->isTargetKnownWindowsMSVC() || Subtarget->isTargetWindowsGNU()) { // Just use the implicit TLS architecture
and test\CodeGen\X86\tls* do test for triple==x86-pc-win32, x86_64-pc-win32
Comment Actions
Hi Martell,
Yes I know of the change, these are just the triples from the test which I did not modify.
The triples could be updated for new style in all tests but this is other decision to make.
Comment Actions
Nice, LGTM.
Clang now compiles thread variables correctly on Windows for me. C++11 thread_local and declpsec(thread) need more work though.