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

Yaxun Liu via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 22 12:13:37 PDT 2016


yaxunl created this revision.
yaxunl added reviewers: Anastasia, rsmith, bader, pxli168.
yaxunl added subscribers: tstellarAMD, cfe-commits.

OpenCL 1.2/2.0 has large number of "builtin" functions ("builtin" in the sense of OpenCL spec) which are defined in header files. To compile OpenCL kernels using these builtin functions, the header files are needed. There are different implementations of OpenCL header files. The Khronos implementation can be found at these links:

https://github.com/KhronosGroup/SPIR/blob/spirv-1.0/lib/Headers/opencl-12.h
https://github.com/KhronosGroup/SPIR/blob/spirv-1.0/lib/Headers/opencl-20.h

This patch is an effort to elicit further discussions about upstreaming OpenCL header files to clang.


http://reviews.llvm.org/D18369

Files:
  lib/Headers/opencl-12.h
  lib/Headers/opencl-20.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18369.51317.patch
Type: text/x-patch
Size: 1916010 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160322/c3aee1af/attachment-0001.bin>


More information about the cfe-commits mailing list