[llvm-dev] Changing address space

mats petersson via llvm-dev llvm-dev at lists.llvm.org
Wed Oct 14 08:47:16 PDT 2015

Do you mean the conceptual address space that LLVM supports, or some kind
of "address space" in an OS/Executable kind of sense?

LLVM has support for address spaces, so shouldn't be very hard to achieve
this as a "pass" (assuming you can identify TL variables in the first

Obviously at some later stage the address space needs to be taken into
account in the code-gen to machine code, as well, which is a slightly
different matter.


On 14 October 2015 at 15:14, Erdem Derebaşoğlu <llvm-dev at lists.llvm.org>

> Dear all,
> I would like to store thread local variables in a different address space
> than global variables in an OpenMP program. Is it possible to do it using
> LLVM (perhaps with an optimization pass)?
> Erdem Derebasoglu
> _______________________________________________
> 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/20151014/ddaad31e/attachment.html>

More information about the llvm-dev mailing list