[PATCH] D99425: [OpenCL] Fix parsing of opencl-c.h in CL 3.0

Anton Zabaznov via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 30 07:40:11 PDT 2021


azabaznov accepted this revision.
azabaznov added a comment.

Looks good to me. Thanks!

> Without this change, opencl-c.h cannot be parsed with -cl-std=CL3.0 as the write_only image3d_t type is not enabled.

This should be fixed in the following up patches to check for `__opencl_c_3d_image_writes` feature or either for both:  `__opencl_c_3d_image_writes`  and  `cl_khr_3d_image_writes`  (in OpenCL C 3.0 mode). But I think it's OK to have this check for now.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99425/new/

https://reviews.llvm.org/D99425



More information about the cfe-commits mailing list