]> granicus.if.org Git - clang/commit
Add .rgba syntax extension to ext_vector_type types
authorPirama Arumuga Nainar <pirama@google.com>
Fri, 22 Jul 2016 18:49:43 +0000 (18:49 +0000)
committerPirama Arumuga Nainar <pirama@google.com>
Fri, 22 Jul 2016 18:49:43 +0000 (18:49 +0000)
commit459f422c55a0014d4f49171f2d34b1401a67ba3f
treecd5b743c93e0c64b25be04f0ea0e8b794d406cfb
parentf9fef1ef2ec232d21567c848d5c3ec9c06df13bc
Add .rgba syntax extension to ext_vector_type types

Summary:
This patch enables .rgba accessors to ext_vector_type types and adds
tests for syntax validation and code generation.

'a' and 'b' can appear either in the point access mode or the numeric
access mode (for indices 10 and 11).  To disambiguate between the two
usages, the accessor type is explicitly passed to relevant methods.

Reviewers: rsmith

Subscribers: Anastasia, bader, srhines, cfe-commits

Differential Revision: http://reviews.llvm.org/D20602

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276455 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Type.h
include/clang/Basic/DiagnosticGroups.td
include/clang/Basic/DiagnosticSemaKinds.td
lib/AST/Expr.cpp
lib/Sema/SemaExprMember.cpp
test/CodeGen/ext-vector.c
test/Sema/ext_vector_components.c
test/SemaOpenCL/ext_vectors.cl [new file with mode: 0644]