Provide a mechanism to attach OpenCL extension information to builtin
functions, so that their use can be restricted according to the
extension(s) the builtin is part of.
Patch by Pierre Gondois and Sven van Haastregt.
Paths
| Differential D71476
[OpenCL] Add builtin function extension handling ClosedPublic Authored by svenvh on Dec 13 2019, 9:48 AM.
Details Summary Provide a mechanism to attach OpenCL extension information to builtin Patch by Pierre Gondois and Sven van Haastregt.
Diff Detail
Event TimelineComment Actions LGTM! Thanks!
This revision is now accepted and ready to land.Dec 16 2019, 11:49 AM Comment Actions Just a minor comment, can you address it before you submit? Thanks!
svenvh added inline comments. Closed by commit rG308b8b76ceee: [OpenCL] Add builtin function extension handling (authored by svenvh). · Explain WhyDec 18 2019, 2:16 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 234491 clang/lib/Sema/OpenCLBuiltins.td
clang/lib/Sema/SemaLookup.cpp
clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl
clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
|
Are we planning to add type extensions too? If not it might not be worth creating extra abstractions. :)