On a related topic,  clang does not seem to accept  vector compares - If a < b where a, b are of vector type. However, the assembly language does allow result of vector types for compares. So is this unsupported yet ?  Open CL also allows for comparison of vectors. <div>
<br></div><div><br><div>thanks</div><div>Sumesh<br><div><br></div><div><br><br><div class="gmail_quote">On Mon, Mar 15, 2010 at 2:13 AM, Arnaud Allard de Grandmaison <span dir="ltr"><<a href="mailto:Arnaud.AllardDeGrandMaison@dibcom.com">Arnaud.AllardDeGrandMaison@dibcom.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks John. I have seen you had time to improve the patch as well.<br>
<br>
This is also what I assume, as I update llvm and clang at the same time, but for historical reasons, I am working with a git clone for llvm, and an svn repository for clang. Yes, this is _ugly_. And this can create such discrepancies from time to time. Just dreaming of the day when it will be possible to directly clone llvm and clang form an official <a href="http://llvm.org" target="_blank">llvm.org</a> git repository... This would definitely help me to maintain my company branch and help as well the patch flow.<br>

<div class="im"><br>
--<br>
Arnaud de Grandmaison<br>
<br>
-----Original Message-----<br>
</div><div class="im">From: John McCall [mailto:<a href="mailto:rjmccall@apple.com">rjmccall@apple.com</a>]<br>
Sent: Friday, March 12, 2010 1:20 AM<br>
To: Arnaud Allard de Grandmaison<br>
Cc: <a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
Subject: Re: [cfe-dev] OpenCL parsing / type support<br>
<br>
</div><div><div></div><div class="h5">On Mar 11, 2010, at 7:04 AM, Arnaud Allard de Grandmaison wrote:<br>
> This way, you can now have a memcpy-like function, transferring blocks from address space 0 to 1, with the following declaration in your clang/include/clang/Basic/BuiltinsZZZZ.def:<br>
><br>
> BUILTIN(__builtin_memxfer, "v*1v*1vC*z", "n")<br>
<br>
Seems reasonable to me;  I'll go ahead and commit this when I get a chance.<br>
<br>
> Clang/head is currently broken (building it fails with 'llvm::DIFile' has not been declared), so I have not been able to test it, but the patch applies and the patched files compile just fine.<br>
<br>
DIFile was added to LLVM on Monday in r97994.  In general Clang/head is tightly coupled to LLVM/head, and you should assume that missing declarations (particularly in the llvm:: namespace) are due to such changes.<br>
<br>
John.<br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div></div></div>