[LLVMdev] thread local support for mingw?

Carlo Kok ck at remobjects.com
Wed Aug 13 14:10:35 PDT 2014


given

@tlsval = thread_local global %Object* null

%0 = load %Object** @tlsval


on i686-w64-mingw32

i get a non-null %0 value in llvm (from july, I didn't see anything TLS  
related in commits since). Is there any way to get a 0 initialized TLS  
value? If not, what other options for Thread local storage are there on  
windows 32bits (or 64bits for that matter)?



More information about the llvm-dev mailing list