summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenOpenCL/kernel-arg-info.cl
Commit message (Collapse)AuthorAgeFilesLines
* Add OpenCL/SPIR kernel_arg_base_type metadata nodeFraser Cormack2014-07-301-0/+12
| | | | | | | | | | | | | | As defined in the SPIR 1.2 specification, this node behaves similarly to kernel_arg_type but will print the underlying type name, e.g., without typedefs. Example: typedef unsigned int myunsignedint; would report: 'myunsignedint' in the kernel_arg_type node 'uint' in the kernel_arg_base_type node llvm-svn: 214308
* Fix OpenCL/SPIR kernel_arg_type metadata nodeFraser Cormack2014-07-301-0/+9
| | | | | | | | | | | | This fixes a bug where kernel_arg_type was always changing 'unsigned ' to 'u' for any parameter type, including non-canonical types. Example: typedef unsigned int myunsignedint; would report: "myunt" llvm-svn: 214305
* When printing types for the OpenCL kernel metadata, use the PrintingPolicy.Joey Gouly2014-04-041-0/+8
| | | | | | | | This allows 'half' to be printed as 'half' and not as '__fp16'. Patch by Fraser Cormack! llvm-svn: 205624
* The OpenCL specification states that images are allocated Pekka Jaaskelainen2014-01-091-1/+1
| | | | | | | | | | | from the global address space (6.5.1 of the OpenCL 1.2 specification). This makes clang construct the image arguments in the global address space and generate the argument metadata with the correct address space descriptor. Patch by Pedro Ferreira! llvm-svn: 198868
* Generate metadata to implement the -cl-kernel-arg-info option.Guy Benyei2013-03-241-3/+16
| | | | | | OpenCL 1.2 spec. 5.7.3. llvm-svn: 177839
* Fix an OpenCL test case. Pointer arguments to kernels must be declared with theJoey Gouly2013-02-211-1/+1
| | | | | | __global, __constant or __local qualifier. llvm-svn: 175735
* Add OpenCL metadata for kernel arg names. This output is controlled via a ↵Tanya Lattner2012-07-111-0/+7
flag as noted in the OpenCL Spec. Includes a test case. llvm-svn: 160092
OpenPOWER on IntegriCloud