bader added inline comments.

================
Comment at: lib/Headers/opencl.h:14476-14479
@@ +14475,6 @@
+
+#ifdef _HAS_READ_WRITE_IMAGE
+float4 __attribute__((overloadable)) read_imagef(read_write image2d_t image, 
sampler_t sampler, int2 coord);
+float4 __attribute__((overloadable)) read_imagef(read_write image2d_t image, 
sampler_t sampler, float2 coord);
+#endif //_HAS_READ_WRITE_IMAGE
+
----------------
According to OpenCL 2.0 (page 46 of 
https://www.khronos.org/registry/cl/specs/opencl-2.0-openclc.pdf):

The sampler-less read image and write image built-ins can be used with image 
declared with the __read_write (or read_write) qualifier. Calls to built-ins 
that read from an image using a sampler for images declared with the 
__read_write (or read_write) qualifier will be a compilation error.



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