[llvm-dev] JITted code and thread-local storage
Philip Reames via llvm-dev
llvm-dev at lists.llvm.org
Sun Aug 21 11:17:47 PDT 2016
We use GS based addressing in our code just fine. We have a home grown
version of TLS, but I believe the principal mechanisms needed for the
Linux x86-64 version are similar. The key thing you need is to use the
right address space (256 = GS, 257 = FS IRC) when describing the memory
locations.
Philip
On 08/17/2016 09:25 PM, Keno Fischer via llvm-dev wrote:
> I had tried this in https://reviews.llvm.org/D8815, but we've since
> switched to a home grown TLS implementation, so I currently don't have
> a need for this.
>
> On Thu, Aug 18, 2016 at 12:17 AM, Alex Denisov via llvm-dev
> <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
>
> /cc Lang Hames
>
> > On 17 Aug 2016, at 19:27, Antoine Pitrou via llvm-dev
> <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
> >
> >
> > Hello,
> >
> > Am I right in thinking that MCJIT doesn't support thread-local
> > variables (at least not on Linux x86-64)?
> >
> > Is there any plan or pending PR to support it (either in MCJIT or in
> > ORC)?
> >
> > Thank you,
> >
> > Regards
> >
> > Antoine.
> >
> > _______________________________________________
> > LLVM Developers mailing list
> > llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>
> > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
> <http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev>
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
> <http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev>
>
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160821/072fe99d/attachment.html>
More information about the llvm-dev
mailing list