[llvm-commits] Thread local storage support in the JIT

Nicolas Geoffray nicolas.geoffray at lip6.fr
Thu Oct 23 08:06:09 PDT 2008


Hi everyone,

Here's a new patch that moves tls memory allocation to TargetJITInfo 
instead of the ExecutionEngine. It's a cleaner implementation since each 
target may have its own way of allocating tls variables.

Nicolas


Nicolas Geoffray wrote:
> Hi everyone,
>
> This patch enables thread local storage in JIT/Interpreter 
> environments (on linux/x86). It does 2 things:
>
> - The emission of thread local global variables by giving it an offset 
> in the thread local register (ie SG).
> - The code generation of thread local global variable loads and stores.
>
> What do you guys think?
>
> Thanks,
> Nicolas
> ------------------------------------------------------------------------
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

-------------- next part --------------
A non-text attachment was scrubbed...
Name: jit-tls.patch
Type: text/x-patch
Size: 9894 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20081023/92e23b87/attachment.bin>


More information about the llvm-commits mailing list