diff options
author | Anastasia Stulova <anastasia.stulova@arm.com> | 2017-01-25 12:18:50 +0000 |
---|---|---|
committer | Anastasia Stulova <anastasia.stulova@arm.com> | 2017-01-25 12:18:50 +0000 |
commit | d1f390ef999b0dc2a7fc8f90a97b4674a5f72b84 (patch) | |
tree | 1a2729f23087eedf058011d76fabc834b244aa74 /clang/unittests/Format/FormatTest.cpp | |
parent | 7ecc0b7f3d97df07f9d8ea794dd239b03e443179 (diff) | |
download | bcm5719-llvm-d1f390ef999b0dc2a7fc8f90a97b4674a5f72b84.tar.gz bcm5719-llvm-d1f390ef999b0dc2a7fc8f90a97b4674a5f72b84.zip |
[OpenCL] Diagnose write_only image3d when extension is disabled
Prior to OpenCL 2.0, image3d_t can only be used with the write_only
access qualifier when the cl_khr_3d_image_writes extension is enabled,
see e.g. OpenCL 1.1 s6.8b.
Require the extension for write_only image3d_t types and guard uses of
write_only image3d_t in the OpenCL header.
Patch by Sven van Haastregt!
Review: https://reviews.llvm.org/D28860
llvm-svn: 293050
Diffstat (limited to 'clang/unittests/Format/FormatTest.cpp')
0 files changed, 0 insertions, 0 deletions