[OpenCL] Guard depth image builtins
authorSven van Haastregt <sven.vanhaastregt@arm.com>
Tue, 13 Sep 2022 09:10:48 +0000 (10:10 +0100)
committerSven van Haastregt <sven.vanhaastregt@arm.com>
Tue, 13 Sep 2022 09:10:48 +0000 (10:10 +0100)
commit5a7764c9ff5db8c460b52bc2dec95d19df44d4c8
tree73fb4a186a978f4ba27f4c597132d17112cc17a2
parent1f7b94e0ec7fae446e2ef9fcc41968fc711fb2c7
[OpenCL] Guard depth image builtins

Ensure any uses of `image2d_depth_t` and `image2d_array_depth_t` are
guarded behind the `cl_khr_depth_images` extension in
`OpenCLBuiltins.td`.

Fix a few missing guards in `opencl-c.h`.
clang/lib/Headers/opencl-c.h
clang/lib/Sema/OpenCLBuiltins.td