summaryrefslogtreecommitdiffstats
path: root/clang/test/Parser/ocu_vector_components.c
Commit message (Collapse)AuthorAgeFilesLines
* rename these tests to match the attribute.Chris Lattner2009-01-051-28/+0
| | | | llvm-svn: 61770
* Extend vector member references to include {.hi, .lo, .e, .o} which return aNate Begeman2008-05-091-2/+1
| | | | | | | | | | | | | vector of the same element type and half the width, with the high, low, even, and odd elements respectively. Allow member references to member references, so that .hi.hi gives you the high quarter of a vector. This is fairly convenient syntax for some insert/extract operations. Remove some unnecessary methods/types in the ExtVectorElementExpr class. llvm-svn: 50892
* OCUVector -> ExtVector, shorthand for extended vector, per feedback from Chris.Nate Begeman2008-04-181-3/+3
| | | | llvm-svn: 49942
* rename -parse-ast-print to -ast-printChris Lattner2007-10-111-1/+1
| | | | | | | rename -parse-ast-dump to -ast-dump remove -parse-ast, which is redundant with -fsyntax-only llvm-svn: 42852
* Removed option "-parse-ast-check" from clang driver. This is now implementedTed Kremenek2007-09-261-1/+1
| | | | | | | | | | | | using "-parse-ast -verify". Updated all test cases (using a sed script) that invoked -parse-ast-check to now use -parse-ast -verify. Fixed a bug where using "-verify" instead of "-parse-ast-check" would not correctly create the DiagClient needed to accumulate diagnostics. llvm-svn: 42365
* Restrict vector component access (using "." and "[]") to variables.Steve Naroff2007-08-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Chris suggested this, since it simplifies the code generator. If this features is needed (and we don't think it is), we can revisit. The following test case now produces an error. [dylan:~/llvm/tools/clang] admin% cat t.c typedef __attribute__(( ocu_vector_type(4) )) float float4; static void test() { float4 vec4; vec4.rg.g; vec4.rg[1]; } [dylan:~/llvm/tools/clang] admin% ../../Debug/bin/clang t.c t.c:8:12: error: vector component access limited to variables vec4.rg.g; ^~ t.c:9:12: error: vector component access limited to variables vec4.rg[1]; ^~~ 2 diagnostics generated. llvm-svn: 40795
* Finish up semantic analysis for vector components.Steve Naroff2007-07-301-6/+13
| | | | llvm-svn: 40584
* Implement syntax/semantic analysis for OCU Vector Components.Steve Naroff2007-07-271-0/+20
Next step, AST support... llvm-svn: 40568
OpenPOWER on IntegriCloud