[cfe-dev] OpenCL & SPIR specific types - proposal and patch

Benyei, Guy guy.benyei at intel.com
Wed Oct 3 13:59:21 PDT 2012


Oops, sorry for the line ending issues. Apparently my svn client did some mess.
Attached the fixed patch.

Thanks

[email_signature_guy_new2]

From: Villmow, Micah [mailto:Micah.Villmow at amd.com]
Sent: Wednesday, October 03, 2012 17:22
To: Benyei, Guy; cfe-dev at cs.uiuc.edu
Cc: Anton.Lokhmotov at arm.com; Ouriel, Boaz
Subject: RE: OpenCL & SPIR specific types - proposal and patch

Is it possible to unify the line endings on the patch(some lines have \lf and some have \cr\lf? From the OpenCL perspective this looks fine.

Micah

From: Benyei, Guy [mailto:guy.benyei at intel.com]
Sent: Wednesday, October 03, 2012 8:06 AM
To: cfe-dev at cs.uiuc.edu<mailto:cfe-dev at cs.uiuc.edu>
Cc: Villmow, Micah; Anton.Lokhmotov at arm.com<mailto:Anton.Lokhmotov at arm.com>; Ouriel, Boaz
Subject: OpenCL & SPIR specific types - proposal and patch

I'd like to renew the discussion about making the OpenCL specific types first class citizens in Clang.

I think this change is required by the OpenCL specifications, since these type names are keywords of the OpenCL C language.
This change is also needed in order to enable efficient checking of OpenCL restrictions on these types (OpenCL 1.2 spec, section 6.9).
Furthermore, the proposed change will turn these types to pointers to opaque types, which means that it will hide the actual (vendor specific) implementation, so the OpenCL vendors using Clang will be able to implement these types in their own way.

This change would also be a basis for the implementation of SPIR generation by Clang. The SPIR discussion and spec can be found here:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-September/024132.html
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-September/024178.html

Earlier discussion about the OpenCL types was started by Anton Lokhmotov:
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-May/015297.html
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-April/014741.html
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-March/014118.html
http://lists.cs.uiuc.edu/pipermail/cfe-dev/2011-March/014121.html


[email_signature_guy_new2]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121003/c6215efb/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/20121003/c6215efb/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opencl_types.patch
Type: application/octet-stream
Size: 25804 bytes
Desc: opencl_types.patch
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121003/c6215efb/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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20121003/c6215efb/attachment-0001.html>


More information about the cfe-dev mailing list