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

Pirama Arumuga Nainar via cfe-commits cfe-commits at lists.llvm.org
Tue May 24 15:30:02 PDT 2016


pirama created this revision.
pirama added subscribers: cfe-commits, srhines.

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.

http://reviews.llvm.org/D20602

Files:
  include/clang/AST/Type.h
  lib/AST/Expr.cpp
  lib/Sema/SemaExprMember.cpp
  test/CodeGen/ext-vector.c
  test/Sema/ext_vector_components.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20602.58336.patch
Type: text/x-patch
Size: 7050 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160524/a969fbe9/attachment.bin>


More information about the cfe-commits mailing list