<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, May 25, 2016 at 2:20 AM, Alexey Bader via cfe-commits <span dir="ltr"><<a href="mailto:cfe-commits@lists.llvm.org" target="_blank">cfe-commits@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">bader added a subscriber: bader.<br>
bader added a comment.<br>
<span class=""><br>
In <a href="http://reviews.llvm.org/D20602#438667" rel="noreferrer" target="_blank">http://reviews.llvm.org/D20602#438667</a>, @rsmith wrote:<br>
<br>
> I'm not suggesting it be treated as invalid. This extension is part of at least OpenCL 2.1, but it's not part of OpenCL 1.0. `ext_vector_type` is Clang's implementation of the OpenCL vector type. Therefore if the user asks us to support OpenCL 1.0, we should give them a warning if they use this syntax.<br>
><br>
> If we're not building an OpenCL source file, then yes, this is our extension and it makes sense for it to be available unconditionally (without a warning).<br>
<br>
<br>
</span>To avoid confusion, I'd like to note that rgba selector was first introduced in OpenCL C++ kernel language, which is currently in provisional state and will be part of OpenCL version 2.2.<br>
<a href="https://www.khronos.org/registry/cl/specs/opencl-2.2-cplusplus.pdf" rel="noreferrer" target="_blank">https://www.khronos.org/registry/cl/specs/opencl-2.2-cplusplus.pdf</a> (page 18).<br></blockquote><div><br></div><div><a href="https://www.khronos.org/registry/cl/specs/opencl-2.1-openclc++.pdf">https://www.khronos.org/registry/cl/specs/opencl-2.1-openclc++.pdf</a> page 12-13 document it. Is that not OpenCL version 2.1?<br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
OpenCL version 2.1 uses OpenCL C 2.0 kernel language, which doesn't support rgba selector.<br>
<br>
<a href="https://www.khronos.org/registry/cl/" rel="noreferrer" target="_blank">https://www.khronos.org/registry/cl/</a> - latest versions of OpenCL specs.<br>
<div class=""><div class="h5"><br>
<br>
<a href="http://reviews.llvm.org/D20602" rel="noreferrer" target="_blank">http://reviews.llvm.org/D20602</a><br>
<br>
<br>
<br>
_______________________________________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits</a><br>
</div></div></blockquote></div><br></div></div>