[llvm-commits] [PATCH] Implement local-dynamic TLS model for x86 (PR3985)

Hans Wennborg hans at chromium.org
Wed May 23 09:44:59 PDT 2012


Taking another stab at this.

The attached patch implements support for the local-dynamic TLS model on x86.

The lowering code will generate calls to get the address for the TLS
block for each variable access. Later, a MachineFunctionPass is used
to remove all such calls except one, achieving the goal of at most one
call to __get_tls_addr per function.

Again, I'm new to codegen, so any comments and suggestions are much
appreciated. Please review.

Thanks,
Hans
-------------- next part --------------
A non-text attachment was scrubbed...
Name: local-dynamic2.patch
Type: application/octet-stream
Size: 23699 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120523/53f212c0/attachment.obj>


More information about the llvm-commits mailing list