<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 24, 2014 at 1:57 PM, Jingyue Wu <span dir="ltr"><<a href="mailto:jingyue@google.com" target="_blank">jingyue@google.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">No AFAIK. We can add the generic address space into LangAS::ID. The problem is though how the IR optimizer knows which number means the generic address space. </div>

</blockquote><div><br></div><div>I think it would be a good idea to open a separate discussion on LLVMdev about this, since there are several interested parties and the problem is probably more in the LLVM domain than Clang domain at this point (after Jingyue's patch is committed).</div>

<div><br></div><div>Eli</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br>

<br><div class="gmail_quote">
On Mon, Mar 24, 2014 at 1:22 PM, Justin Holewinski <span dir="ltr"><<a href="mailto:jholewinski@nvidia.com" target="_blank">jholewinski@nvidia.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



  
    
  
  <div bgcolor="#FFFFFF" text="#000000"><div><div>
    On 03/24/2014 03:22 PM, Matt Arsenault wrote:<br>
    <blockquote type="cite">
      <pre>On 03/24/2014 11:46 AM, Justin Holewinski wrote:
</pre>
      <blockquote type="cite">
        <pre> Of course, this also assumes address space 0 is generic.  This is 
currently true for the in-tree targets and CUDA/OpenCL support in 
Clang, but I don't believe its a set rule anywhere.
</pre>
      </blockquote>
      <pre>R600 wants this optimization, except the "generic" address space isn't 
0, and is instead some other currently undefined number.</pre>
    </blockquote>
    <br></div></div>
    Sounds like good justification for making this a target-independent
    pass, then.<br>
    <br>
    Jingyue, is there anything in clang now that would prevent the
    generic address space from being a number other than 0?<br>
    <br>
    <blockquote type="cite">
      <pre>-Matt

</pre>
    </blockquote><div>
    <br>
  
<div>
<hr>
</div>
<div>This email message is for the sole use of the intended recipient(s) and may 
contain confidential information.  Any unauthorized review, use, disclosure 
or distribution is prohibited.  If you are not the intended recipient, 
please contact the sender by reply email and destroy all copies of the original 
message. </div>
<div>
<hr>
</div>
</div></div>

</blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@cs.uiuc.edu">cfe-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits</a><br>
<br></blockquote></div><br></div></div>