Skip to content

Commit 1145dc3

Browse files
committed
Enable images for OpenCL C 1.2
1 parent 98ae863 commit 1145dc3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

clang/lib/Headers/opencl-c-base.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555
#endif // defined(__SPIR__) || defined(__SPIRV__)
5656
#endif // (defined(__OPENCL_CPP_VERSION__) || __OPENCL_C_VERSION__ >= 200)
5757

58+
#if (__OPENCL_C_VERSION__ == 120)
59+
#define __opencl_c_images 1
60+
#endif // (__OPENCL_C_VERSION__ == 120)
61+
5862
// Define feature macros for OpenCL C 2.0
5963
#if (__OPENCL_CPP_VERSION__ == 100 || __OPENCL_C_VERSION__ == 200)
6064
#define __opencl_c_pipes 1

0 commit comments

Comments
 (0)