summaryrefslogtreecommitdiff
path: root/test/SemaOpenCL/invalid-kernel.cl
Commit message (Collapse)AuthorAgeFilesLines
* [OpenCL] Improve address space diagnostics.Egor Churaev2016-12-131-3/+7
| | | | | | | | | | Reviewers: Anastasia Subscribers: bader, yaxunl, cfe-commits Differential Revision: https://reviews.llvm.org/D27671 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@289536 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow address space qualifiers on OpenCL array parametersFraser Cormack2014-04-151-0/+2
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206275 91177308-0d34-0410-b5e6-96231b3b80d8
* Enforce the restriction that a parameter to a kernel functionDavid Tweed2014-03-271-0/+2
| | | | | | | | | | cannot be a pointer to the private address space (as clarified in the OpenCL 1.2 specification). Patch by Fraser Cormack! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204941 91177308-0d34-0410-b5e6-96231b3b80d8
* [OpenCL] Produce an error if an address space is used on the returnJoey Gouly2014-01-061-0/+12
| | | | | | | type of a function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198597 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not allow functions or kernels called 'main' in OpenCL.Joey Gouly2013-11-051-0/+8
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194068 91177308-0d34-0410-b5e6-96231b3b80d8
* Error on more illegal kernel argument types for OpenCLMatt Arsenault2013-07-231-1/+1
| | | | | | | | bool, half, pointers and structs / unions containing any of these are not allowed. Does not yet reject size_t and related integer types that are also disallowed. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@186908 91177308-0d34-0410-b5e6-96231b3b80d8
* Add OpenCL error that a kernel function must have void return type. Includes ↵Tanya Lattner2013-01-301-0/+4
| | | | | | a test case. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173963 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a diagnostic for an OpenCL kernel with a pointer pointer argument.Joey Gouly2013-01-291-0/+3
Also refactor the surrounding code a little. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@173791 91177308-0d34-0410-b5e6-96231b3b80d8