summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaOpenCL
Commit message (Collapse)AuthorAgeFilesLines
...
* Add some semantic checks for OpenCL. Variadic macros, VLAs and bitfields are ↵Joey Gouly2013-01-171-0/+9
| | | | | | not supported. llvm-svn: 172732
* Prior to adding the new "expected-no-diagnostics" directive to ↵Andy Gibbs2012-10-194-0/+4
| | | | | | VerifyDiagnosticConsumer, make the necessary adjustment to 580 test-cases which will henceforth require this new directive. llvm-svn: 166280
* Disable the warning for missing prototypes for OpenCL kernels. Includes ↵Tanya Lattner2012-07-261-0/+6
| | | | | | testcase. llvm-svn: 160766
* Extend the support for cl-std to include 1.2.Tanya Lattner2012-06-191-0/+12
| | | | | | | Add error checking for the static qualifier which is now allowed in certain situations for OpenCL 1.2. Use the CL version to turn on this feature. Added test case for 1.2 static storage class feature. llvm-svn: 158759
* Support constant evaluation for OpenCL nested vector literals. Patch by ↵Eli Friedman2012-01-031-0/+26
| | | | | | Anton Lokhmotov. llvm-svn: 147496
* TypePrinter: print OpenCL address space names. Patch by RichardPeter Collingbourne2011-11-082-6/+13
| | | | | | Membarth, test case by myself. llvm-svn: 144063
* The comparison of two vectors should return a signed result. ↵Tanya Lattner2011-10-171-0/+11
| | | | | | | | | hasIntegerRepresentation() used to always return false for vectors, but since it was changed, it also changed the return type of a compare of two unsigned vectors to be unsigned. This patch removes the check for hasIntegerRepresentation since its not needed and returns the appropriate signed type. I added a new test case and updated exisiting test cases that assumed an unsigned result. llvm-svn: 142250
* In OpenCL, conversions between different vector types are disallowedTobias Grosser2011-09-221-0/+14
| | | | | | | | | | | | | | OpenCL 6.2.1 says: "Implicit conversions between built-in vector data types are disallowed." OpenCL 6.2.2 says: "Explicit casts between vector types are not legal." For example: uint4 u = (uint4)(1); int4 i = u; // invalid implicit conversion int4 e = (int4)u; // invalid explicit conversion Fixes PR10967. Submitted by: Anton Lokhmotov <Anton.lokhmotov@gmail.com> llvm-svn: 140300
* In the OpenCL mode, the AltiVec mode must be off and checks must be strictTobias Grosser2011-09-211-1/+1
| | | | | | | | | | OpenCL is different from AltiVec in the way it supports vector literals. OpenCL is strict with regards to semantic checks. For example, implicit conversions and explicit casts between vectors of different types are disallowed. Fixes PR10975. Submitted by: Anton Lokhmotov <Anton.lokhmotov@gmail.com> llvm-svn: 140270
* OpenCL: introduce support for function scope __local variablesPeter Collingbourne2011-09-191-0/+6
| | | | llvm-svn: 140068
* This handles the missing cases of opencl vector literals.Tanya Lattner2011-07-151-0/+13
| | | | | | Test cases provided by Anton Lokhmot. llvm-svn: 135322
* OpenCL: if double precision floating point constant encounteredPeter Collingbourne2011-03-111-3/+5
| | | | | | without cl_khr_fp64, warn and cast to single precision llvm-svn: 127476
* Add support for the OpenCL vec_step operator, by generalising andPeter Collingbourne2011-03-111-0/+32
| | | | | | | extending the existing support for sizeof and alignof. Original patch by Guy Benyei. llvm-svn: 127475
* OpenCL: standardise naming of test casesPeter Collingbourne2011-02-152-0/+20
| | | | llvm-svn: 125590
* OpenCL: semantic analysis support for cl_khr_fp64 extensionPeter Collingbourne2011-02-151-0/+17
llvm-svn: 125588
OpenPOWER on IntegriCloud