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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to