Antoine Pitrou via llvm-dev
2016-Aug-17 17:27 UTC
[llvm-dev] JITted code and thread-local storage
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.
Alex Denisov via llvm-dev
2016-Aug-18 04:17 UTC
[llvm-dev] JITted code and thread-local storage
/cc Lang Hames> On 17 Aug 2016, at 19:27, Antoine Pitrou via llvm-dev <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 > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 496 bytes Desc: Message signed with OpenPGP using GPGMail URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160818/b0e63a0c/attachment.sig>
Keno Fischer via llvm-dev
2016-Aug-18 04:25 UTC
[llvm-dev] JITted code and thread-local storage
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> wrote:> /cc Lang Hames > > > On 17 Aug 2016, at 19:27, Antoine Pitrou via llvm-dev < > 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 > > 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/20160818/1956cf65/attachment.html>
Lang Hames via llvm-dev
2016-Aug-22 20:54 UTC
[llvm-dev] JITted code and thread-local storage
Hi Antoine, I don't believe there's any ORC PR for this yet. Keno - your patch allowed JIT'd code to access TLVs defined in the host process, right? That would be nice to have eventually, but we're probably best off requiring calls to accessors in the host for now. I'd like to see support for TLV definitions in JIT'd code, but I haven't been able to find time to work on that one yet. Cheers, Lang. On Wed, Aug 17, 2016 at 10:27 AM, Antoine Pitrou via llvm-dev < 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 > 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/20160822/fd910db1/attachment-0001.html>
Keno Fischer via llvm-dev
2016-Aug-22 22:29 UTC
[llvm-dev] JITted code and thread-local storage
> Keno - your patch allowed JIT'd code to access TLVs defined in the host process, right? That would be nice to have eventually, but we're probably best off requiring calls to accessors in the host for now.correct