https://bugs.llvm.org/show_bug.cgi?id=47919
Bug ID: 47919
Summary: image2d_depth_t shouldn't be available in OpenCL 1.1
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: OpenCL
Assignee: unassignedclangb...@nondot.org
Reporter: marco.antogn...@arm.com
CC: anastasia.stul...@arm.com, llvm-bugs@lists.llvm.org
When compiling the following for OpenCL 1.1 Clang doesn't reject the usage of
image2d_depth_t.
float bar(read_only image2d_depth_t image, sampler_t sampler, int2 coord) {
return read_imagef(image, sampler, coord);
}
https://godbolt.org/z/MsjKjr
The image2d_depth_t type
- is defined in extension cl_khr_depth_images for OpenCL 1.2 (and the
extension is disabled by default), and
- is a core feature in OpenCL 2.0 and later.
Interestingly, Clang accepts this program when using -fdeclare-opencl-builtins.
It is rejected when using `opencl-c.h`, but for another (valid) reason: the
overload of read_imagef using this image type is not available.
Somewhat related to Bug 47882.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs