[cfe-dev] [PATCH] OpenCL kernel semantic checks

Alberto Magni alberto.magni86 at gmail.com
Wed Apr 6 09:15:08 PDT 2011


Hi everybody,

I would like to propose a patch for two OpenCL semantic checks:
1) the __kernel keyword can only be applied to functions,
2) kernel must return void: described in section 6.8.j of the OpenCL manual

I took inspiration from the checks performed on the CUDA attributes performed
by Peter Collingbourne

Reviews are the welcome.

Thank you in advance

Alberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel_sema.patch
Type: text/x-patch
Size: 2557 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20110406/9b1229ba/attachment.bin>


More information about the cfe-dev mailing list