[PATCH] D18369: [OpenCL] Upstreaming khronos OpenCL 1.2/2.0 header files.

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 12 08:40:35 PDT 2016


yaxunl updated this revision to Diff 53401.
yaxunl added a comment.

Merged the header files for OpenCL 1.2 and 2.0 as one opencl.h.

Currently it assumes 1.2 by default and uses __OPENCL_C_VERSION__ for 2.0.

The builtin functions follows the order of spec.

double and half builtin functions stay with the float versions of the same name.

builtin functions for extensions are conditioned with macro cl_khr_*.

builtin functions for extensions are ordered as extension spec after core builtin functions, except cl_khr_half, cl_khr_depth_images, cl_khr_gl_msaa_sharing, and atomics extensions, which stays with their non-extension counter parts.


http://reviews.llvm.org/D18369

Files:
  lib/Headers/opencl.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18369.53401.patch
Type: text/x-patch
Size: 1183456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160412/6d4a006c/attachment-0001.bin>


More information about the cfe-commits mailing list