Ensure any use of a read_write image is guarded behind the __opencl_c_read_write_images feature macro.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
| Paths 
 |  Differential  D117899  
[OpenCL] Make read_write images optional for -fdeclare-opencl-builtins ClosedPublic Authored by svenvh on Jan 21 2022, 8:56 AM. 
Details Summary Ensure any use of a read_write image is guarded behind the __opencl_c_read_write_images feature macro. 
Diff Detail 
 Event TimelineThis revision is now accepted and ready to land.Jan 24 2022, 8:09 AM Closed by commit rG91a0b464a853: [OpenCL] Make read_write images optional for -fdeclare-opencl-builtins (authored by svenvh).  ·  Explain WhyJan 25 2022, 3:40 AM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
Diff 402833 clang/lib/Headers/opencl-c-base.h
 clang/lib/Sema/OpenCLBuiltins.td
 clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||