[PATCH] D117899: [OpenCL] Make read_write images optional for -fdeclare-opencl-builtins

Sven van Haastregt via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 21 08:56:35 PST 2022


svenvh created this revision.
svenvh added a reviewer: Anastasia.
svenvh added a project: clang.
Herald added subscribers: Naghasan, ldrumm, yaxunl.
svenvh requested review of this revision.
Herald added a subscriber: cfe-commits.

Ensure any use of a `read_write` image is guarded behind the `__opencl_c_read_write_images` feature macro.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117899

Files:
  clang/lib/Headers/opencl-c-base.h
  clang/lib/Sema/OpenCLBuiltins.td
  clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117899.402007.patch
Type: text/x-patch
Size: 13444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220121/a3388bc4/attachment.bin>


More information about the cfe-commits mailing list