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

Alexey Bader via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 18 12:18:08 PDT 2016


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





More information about the cfe-commits mailing list