[LLVMdev] Handling of thread_local globals by llc -march=cpp

Anton Korobeynikov anton at korobeynikov.info
Thu May 13 12:53:20 PDT 2010


> I note also that this is not a currently unsupported target case where an error should/could/would be produced on attempting to emit code with thread local references. I say this because clang is able to compile both c source with __thread on a global and bc containing a @variable = thread_local global ... and a function that references the thread local global variable to both assembly and machine code that has segment register offset addressing.
Maybe TLS stuff is just broken inside JIT?

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University




More information about the llvm-dev mailing list