Add enum and typedef argument support to -fdeclare-opencl-builtins,
which was the last major missing feature.
Adding the remaining missing builtins is left as future work.
Paths
| Differential D96051
[OpenCL] Support enum and typedef args in TableGen BIFs ClosedPublic Authored by svenvh on Feb 4 2021, 8:47 AM.
Details Summary Add enum and typedef argument support to -fdeclare-opencl-builtins, Adding the remaining missing builtins is left as future work.
Diff Detail Event Timelinesvenvh added a parent revision: D96050: [OpenCL] Do not enforce ASTContext for OCL2Qual.Feb 4 2021, 8:47 AM
Comment Actions LGTM! Thanks!
This revision is now accepted and ready to land.Feb 16 2021, 4:47 AM Closed by commit rG23d65aa44631: [OpenCL] Support enum and typedef args in TableGen BIFs (authored by svenvh). · Explain WhyFeb 17 2021, 6:17 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 323040 clang/include/clang/Basic/DiagnosticSemaKinds.td
clang/lib/Sema/OpenCLBuiltins.td
clang/lib/Sema/SemaLookup.cpp
clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl
clang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
|
Actually, could we remove the typedef from the diagnostic because it exposes the implementation details unnecessarily? I believe the spec doesn't say what the type is aside from enums? As a matter of fact, we have some types implemented as typedefs that should have been a native types e.g. vector types that we might change one day.