[PATCH] D103911: [OpenCL] Add support of __opencl_c_images feature macro
Anastasia Stulova via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 9 05:07:07 PDT 2021
Anastasia added inline comments.
================
Comment at: clang/test/SemaOpenCL/unsupported-image.cl:1
+// RUN: %clang_cc1 -verify -cl-std=CL3.0 -cl-ext=-__opencl_c_images %s
+// RUN: %clang_cc1 -verify -cl-std=CL3.0 -cl-ext=+__opencl_c_images %s
----------------
svenvh wrote:
> Should we add `-triple spir`, as some of the image types (e.g. msaa) are part of an extension that may not be available for every default triple?
yes, the test might fail in some bots otherwise...
Btw it would be good to test that 3d images work correctly for OpenCL 3. Would it work if we add `RUN` line with `CL3.0` into `test/SemaOpenCL/access-qualifier.cl` or are we missing some more work to enable the test?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D103911/new/
https://reviews.llvm.org/D103911
More information about the cfe-commits
mailing list