Eli Friedman
b9c7129012
Support constant evaluation for OpenCL nested vector literals. Patch by Anton Lokhmotov.
...
llvm-svn: 147496
2012-01-03 23:24:20 +00:00
Peter Collingbourne
95fd2ca69f
Annotate imprecise FP division with fpaccuracy metadata
...
The OpenCL single precision division operation is only required to
be accurate to 2.5ulp. Annotate the fdiv instruction with metadata
which signals to the backend that an imprecise divide instruction
may be used.
llvm-svn: 143136
2011-10-27 19:19:51 +00:00
Justin Holewinski
38031978b5
PTX: Set proper calling conventions for PTX in OpenCL mode.
...
llvm-svn: 141193
2011-10-05 17:58:44 +00:00
Peter Collingbourne
2dbb708b8a
OpenCL: introduce support for function scope __local variables
...
llvm-svn: 140068
2011-09-19 21:14:35 +00:00
Tanya Lattner
8355938fcd
This handles the missing cases of opencl vector literals.
...
Test cases provided by Anton Lokhmot.
llvm-svn: 135322
2011-07-15 23:07:01 +00:00
Tanya Lattner
207189ef25
Do not violate the opencl casting rules. This test case still illustrates the problem. In the future, we should throw an error when doing invalid casting.
...
llvm-svn: 134570
2011-07-07 00:12:54 +00:00
Tanya Lattner
5bea4c3859
Modify test for 32 and 64 bit.
...
llvm-svn: 129627
2011-04-16 01:00:29 +00:00
Tanya Lattner
5ac257d738
Fix bug in vector initializer when initializing a vector with another vector.
...
Add test case.
llvm-svn: 129617
2011-04-15 22:42:59 +00:00
Peter Collingbourne
599cb8e430
Add support for language-specific address spaces. On top of that,
...
add support for the OpenCL __private, __local, __constant and
__global address spaces, as well as the __read_only, _read_write and
__write_only image access specifiers. Patch originally by ARM;
language-specific address space support by myself.
llvm-svn: 127915
2011-03-18 22:38:29 +00:00
Peter Collingbourne
e91b2dbdf1
OpenCL: standardise naming of test cases
...
llvm-svn: 125590
2011-02-15 19:46:41 +00:00
Peter Collingbourne
7ce13fc940
OpenCL: add support for __kernel, kernel keywords and EXTENSION,
...
FP_CONTRACT pragmas. Patch originally by ARM.
llvm-svn: 125475
2011-02-14 01:42:53 +00:00