[LLVMdev] named address spaces
Juan Carlos Martinez Santos
juanc.martinez.santos at gmail.com
Fri Oct 16 14:30:30 PDT 2009
Hello,
If I want implement other address spaces (for x86), can I modify my back-end
(clang) to support other address spaces (at least two data segments, two
heaps, and two stacks?
How will be the mechanism? For example, for256/257, I see two reference
points (FS and GP). Would I need to specify a different reference to
each memory region? Where is the best site to add the modifications?
Thanks in advance,
Juan Carlos
On Fri, Oct 16, 2009 at 4:34 PM, Chris Lattner <clattner at apple.com> wrote:
>
> On Oct 16, 2009, at 1:22 PM, Juan Carlos Martinez Santos wrote:
>
> Hello,
>>
>> If my understand is correct, LLVM supports the address_space qualifier;
>> however, how I can add custom address spaces. Where I can declare them? For
>> clang (x86), I saw that address spaces #256 and #257 works well (I see the
>> generated code with the 'gs' and 'fs'), but when I select different ones, I
>> don't see any different.
>>
>>
> Address spaces are target specific. The 256/257 address spaces on x86 are
> implemented in the X86 backend, for example.
>
> -Chris
>
>
--
Juan Carlos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20091016/6e0fc993/attachment.html>
More information about the llvm-dev
mailing list