Builtins that require multiple extensions, such as certain
write_imagef forms, were not exposed because of the Sema check not
splitting the extension string.
This was found using the prototype of D97869.
Paths
| Differential D97930
[OpenCL] Fix builtins that require multiple extensions ClosedPublic Authored by svenvh on Mar 4 2021, 3:59 AM.
Details Summary Builtins that require multiple extensions, such as certain This was found using the prototype of D97869.
Diff Detail
Event TimelineComment Actions
Good point, I have updated the test to check for the diagnostic. Comment Actions LGTM! Thanks.
This revision is now accepted and ready to land.Mar 8 2021, 4:07 AM Closed by commit rG13c77f204671: [OpenCL] Fix builtins that require multiple extensions (authored by svenvh). · Explain WhyMar 9 2021, 3:38 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 329281 clang/lib/Sema/SemaLookup.cpp
clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl
|
You don't seem to be using write_imagef for OpenCL versions <= 1.2. But should we be checking that the diagnostic is given?