[PATCH] D18369: [OpenCL] Upstreaming khronos OpenCL header file.

Alexey Bader via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 15 03:42:33 PDT 2016


bader added inline comments.

================
Comment at: lib/Headers/opencl.h:14892-14898
@@ +14891,9 @@
+
+/**
+* Sampler-less Image Access
+*/
+
+float4 __const_func __attribute__((overloadable)) read_imagef(read_only image1d_t image, int coord);
+int4 __const_func __attribute__((overloadable)) read_imagei(read_only image1d_t image, int coord);
+uint4 __const_func __attribute__((overloadable)) read_imageui(read_only image1d_t image, int coord);
+
----------------
OpenCL 2.0 allows sampler-less reading from an image with 'read_write' access qualifiers and write_image to images with 'read_write' access qualifiers.
Since 265783 clang differentiate image types with different access qualifiers, so now we have explicitly declare new built-in functions.
Could you add these declaration, please?


http://reviews.llvm.org/D18369





More information about the cfe-commits mailing list