[cfe-commits] [PATCH] Error checking for OpenCL kernel return type and pointer args.

Tanya Lattner lattner at apple.com
Wed Aug 15 18:11:37 PDT 2012


The attached patch add the following checks and errors:
1) Checks that an OpenCL kernel returns void, otherwise throws error.
2) Check that kernel arguments that are pointers are in the constant, global, or local address space, otherwise throws an error.

I have included a test case.

Please review.

-Tanya
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel-errors.patch
Type: application/octet-stream
Size: 3118 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120815/a61a1ee4/attachment.obj>


More information about the cfe-commits mailing list