llvm-project/clang/utils/TableGen
Sven van Haastregt 79a222fcf8 [OpenCL] Declare builtin functions using TableGen
This patch adds a `-fdeclare-opencl-builtins` command line option to
the clang frontend.  This enables clang to verify OpenCL C builtin
function declarations using a fast StringMatcher lookup, instead of
including the opencl-c.h file with the `-finclude-default-header`
option.  This avoids the large parse time penalty of the header file.

This commit only adds the basic infrastructure and some of the OpenCL
builtins.  It does not cover all builtins defined by the various OpenCL
specifications.  As such, it is not a replacement for
`-finclude-default-header` yet.

RFC: http://lists.llvm.org/pipermail/cfe-dev/2018-November/060041.html

Co-authored-by: Pierre Gondois
Co-authored-by: Joey Gouly
Co-authored-by: Sven van Haastregt

Differential Revision: https://reviews.llvm.org/D60763

llvm-svn: 362371
2019-06-03 09:39:11 +00:00
..
CMakeLists.txt [OpenCL] Declare builtin functions using TableGen 2019-06-03 09:39:11 +00:00
ClangASTNodesEmitter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangAttrEmitter.cpp Add the `objc_class_stub` attribute. 2019-05-30 04:09:01 +00:00
ClangCommentCommandInfoEmitter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangCommentHTMLNamedCharacterReferenceEmitter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangCommentHTMLTagsEmitter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangDataCollectorsEmitter.cpp Add '\n' in ClangDataCollectorsEmitter 2017-09-08 16:17:16 +00:00
ClangDiagnosticsEmitter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangOpenCLBuiltinEmitter.cpp [OpenCL] Declare builtin functions using TableGen 2019-06-03 09:39:11 +00:00
ClangOptionDocEmitter.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00
ClangSACheckersEmitter.cpp [analyzer] List checker/plugin options in 3 categories: released, alpha, developer 2019-05-23 22:52:09 +00:00
NeonEmitter.cpp Use llvm::stable_sort 2019-04-24 14:43:05 +00:00
TableGen.cpp [OpenCL] Declare builtin functions using TableGen 2019-06-03 09:39:11 +00:00
TableGenBackends.h [OpenCL] Declare builtin functions using TableGen 2019-06-03 09:39:11 +00:00