[PATCH] D20602: Add .rgba syntax extension to ext_vector_type types

Stephen Hines via cfe-commits cfe-commits at lists.llvm.org
Tue May 24 16:56:11 PDT 2016


srhines added a comment.

In http://reviews.llvm.org/D20602#438528, @rsmith wrote:

> Looks like this extension was added at some point between 1.1 and 2.1. It would make sense to produce an `ExtWarn` for it if the OpenCL standard version is less than the one that introduced it (whenever that was) -- that would match what we do for extensions in other languages.


This isn't just for OpenCL (actually we don't care about it in the context of OpenCL at all). We really are adding this as more of an extension for C99, where Android has used this in the past. In the case of OpenCL, I also don't know that it should be recognized as invalid, because it can be lowered to an appropriate construct on any implementation (since they all have to support regular 4-vectors).


http://reviews.llvm.org/D20602





More information about the cfe-commits mailing list