[cfe-dev] [OpenCL patch] kernel attributes implementation

Benyei, Guy guy.benyei at intel.com
Tue Dec 20 01:18:30 PST 2011


Hi all,
Attached my implementation for work_group_size_hint and vec_type_hint to complete the support for OpenCL kernel attributes (OpenCL spec 1.1, 6.7.2).

The vec_type_hint attribute is somewhat different from the other attributes, since it has a type parameter. To support this, I've created a dummy expression type, which is basically a container for a type. I'll be happy to hear your opinion about this solution, and see if you have alternative solutions.

I've implemented the handling of these new attributes in the TCE target info, since reqd_work_group_size attribute is already implemented there. I also use this target for testing.

Thanks

[email_signature_guy_new2]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111220/9e5243c7/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 24800 bytes
Desc: image001.png
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111220/9e5243c7/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel-attr.patch
Type: application/octet-stream
Size: 16227 bytes
Desc: kernel-attr.patch
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20111220/9e5243c7/attachment.obj>
-------------- next part --------------
---------------------------------------------------------------------
Intel Israel (74) Limited

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.


More information about the cfe-dev mailing list