Skip to content

Commit

Permalink
[OpenCL] Add the default header file opencl-c.h for OpenCL C language
Browse files Browse the repository at this point in the history
OpenCL 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, a header file is needed.

This header file is based on the Khronos implementation (https://github.com/KhronosGroup/SPIR/blob/spirv-1.0/lib/Headers/opencl.h) with heavy refactoring.

Differential Revision: http://reviews.llvm.org/D18369

llvm-svn: 271136
  • Loading branch information
yxsamliu committed May 28, 2016
1 parent 8d106d5 commit e54d7c4
Show file tree
Hide file tree
Showing 3 changed files with 16,912 additions and 0 deletions.
1 change: 1 addition & 0 deletions clang/lib/Headers/CMakeLists.txt
Expand Up @@ -48,6 +48,7 @@ set(files
module.modulemap
mwaitxintrin.h
nmmintrin.h
opencl-c.h
pkuintrin.h
pmmintrin.h
popcntintrin.h
Expand Down

0 comments on commit e54d7c4

Please sign in to comment.