[PATCH] D10524: Clang/driver: emulated TLS mode.

Reid Kleckner rnk at google.com
Wed Jul 15 08:48:18 PDT 2015


On Tue, Jul 14, 2015 at 5:22 PM, Chih-Hung Hsieh <chh at google.com> wrote:

> chh added a comment.
>
> So in IR, a global variable can have string attributes like
>
>   thread_local emulated-tls
>   thread_local(localdynamic) emulated-tls
>   thread_local(initialexec) emulated-tls
>   thread_local(localexec) emulated-tls
>
> I can give it a try.
> Not sure yet if that will have shorter or longer patch.
>

Sorry, that looks like it was bad advice. The LLVM GlobalVariable class
doesn't appear to support attributes. In that case, it's probably better to
make it global and let it be controlled by the TargetMachine.

Ultimately, I think the patches will be smaller because we shouldn't need
to change IR serialization.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150715/bc5f9aab/attachment.html>


More information about the llvm-commits mailing list