[PATCH] D28860: [OpenCL] Diagnose write_only image3d when extension is disabled

2017-01-25 Thread Anastasia Stulova via Phabricator via cfe-commits
Anastasia closed this revision. Anastasia added a comment. Committed in r293050! https://reviews.llvm.org/D28860 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D28860: [OpenCL] Diagnose write_only image3d when extension is disabled

2017-01-24 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl accepted this revision. yaxunl added a comment. This revision is now accepted and ready to land. LGTM. Thanks! https://reviews.llvm.org/D28860 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[PATCH] D28860: [OpenCL] Diagnose write_only image3d when extension is disabled

2017-01-24 Thread Sven van Haastregt via Phabricator via cfe-commits
svenvh added a comment. In https://reviews.llvm.org/D28860#653662, @yaxunl wrote: > The tests should be added to SemaOpenCL/extension-version.cl SemaOpenCL/extension-version.cl already has a test for the cl_khr_3d_image_writes extension. Comment at:

[PATCH] D28860: [OpenCL] Diagnose write_only image3d when extension is disabled

2017-01-24 Thread Sven van Haastregt via Phabricator via cfe-commits
svenvh updated this revision to Diff 85575. svenvh edited the summary of this revision. svenvh added a comment. Removed the custom sema check and added the extension to the image type in OpenCLImageTypes.def. https://reviews.llvm.org/D28860 Files: include/clang/Basic/OpenCLImageTypes.def

[PATCH] D28860: [OpenCL] Diagnose write_only image3d when extension is disabled

2017-01-23 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl added a comment. The tests should be added to SemaOpenCL/extension-version.cl Comment at: lib/Sema/SemaType.cpp:6683 + // access qualifier unless the cl_khr_3d_image_writes extension is enabled. + if (CurType->isOCLImage3dWOType() && +

[PATCH] D28860: [OpenCL] Diagnose write_only image3d when extension is disabled

2017-01-18 Thread Sven van Haastregt via Phabricator via cfe-commits
svenvh created this revision. 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. Clang did not diagnose write_only image3d arguments when the extension was disabled. Guard uses of write_only image3d in the