Hi,<br><br>Address spaces in LLVM are an abstract concept and LLVM attaches no internal meaning to address spaces, apart from:<br><br>- Location 0 in address space 0 is 'nullptr' and a pointer to this cannot be dereferenced in a well formed program. <br><br>- pointers in different address spaces cannot alias. <br><br>Different backends attach different meanings. So for example an OpenCL backend might interpret address space 1 as local memory, 2 as private memory etc (in fact for OpenCL, these mappings are defined in the Clang frontend, if I recall correctly)<br><br>Cheers,<br><br>James<br><br><div class="gmail_quote"><div dir="ltr">On Wed, 23 Mar 2016 at 09:31, Mohammad Norouzi via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi,<br><br>Do address spaces in llvm corespond to different memory locations? For example, Shared and Global refer to RAM while Local refers to registers?<br><br></div><div>I guess that this may be true in GPU programming. So, I would like to know about CPUs.<br><br></div><div>Thanks.<br></div><div><br></div>Best,<br></div>Mohammad<br><br></div><br></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>