<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000'>[+Richard]<br><br><hr id="zwchr"><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><b>From: </b>"Artem Belevich" <tra@google.com><br><b>To: </b>reviews+D18051+public+fb9c7f3f37ff843f@reviews.llvm.org<br><b>Cc: </b>"Justin Lebar" <jlebar@google.com>, "Jingyue Wu" <jingyue@google.com>, "Hal Finkel" <hfinkel@anl.gov>, "cfe-commits" <cfe-commits@lists.llvm.org><br><b>Sent: </b>Thursday, March 10, 2016 6:38:21 PM<br><b>Subject: </b>Re: [PATCH] D18051: [CUDA] Provide CUDA's vector types implemented using clang's vector extension.<br><br><div dir="ltr">There were ambiguities in overload resolution between vector types and their base types. I.e. if I had<div><br></div><div>void foo(int);</div><div>void foo(int3);</div><div><br></div><div>then call foo(3) was ambiguous. </div><div>It wasn't clear whether this extension is supposed to work in C++ at all.</div><div><br></div></div></blockquote>I'm pretty sure that the vector types are supposed to work in C++, and they have different manglings, so that behavior seems like either bug or a missing desirable feature. Richard, what do you think?<br><br>Thanks again,<br>Hal<br><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px; color: rgb(0, 0, 0); font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div dir="ltr"><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Mar 10, 2016 at 4:05 PM, Hal Finkel <span dir="ltr"><<a href="mailto:hfinkel@anl.gov" target="_blank">hfinkel@anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">hfinkel added a subscriber: hfinkel.<br>
hfinkel added a comment.<br>
<span class=""><br>
In <a href="http://reviews.llvm.org/D18051#372490" rel="noreferrer" target="_blank">http://reviews.llvm.org/D18051#372490</a>, @tra wrote:<br>
<br>
> Ugh. Found more problems with using vector types in C++. Abandoning the idea.<br>
<br>
<br>
</span>I'm curious, what problems?<br>
<br>
<br>
<a href="http://reviews.llvm.org/D18051" rel="noreferrer" target="_blank">http://reviews.llvm.org/D18051</a><br>
<br>
<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">--Artem Belevich</div></div>
</div>
</blockquote><br><br><br>-- <br><div><span name="x"></span>Hal Finkel<br>Assistant Computational Scientist<br>Leadership Computing Facility<br>Argonne National Laboratory<span name="x"></span><br></div></div></body></html>