Files
clang-p2996/llvm/lib/TableGen/CMakeLists.txt
River Riddle e865fa7530 [TableGen] Add a library-based entry point for parsing td files
This commit adds a new `TableGenParseFile` entry point for tablegen
that parses an input buffer and invokes a callback function with
a record keeper (notably without an output buffer). This kind of entry
point is very useful for tablegen consuming tools that don't create
output, and want invoke tablegen multiple times. The current way
that we interact with tablegen is via relative includes to
TGParser(not great).

Differential Revision: https://reviews.llvm.org/D119899
2022-03-03 16:14:03 -08:00

21 lines
353 B
CMake

add_llvm_component_library(LLVMTableGen
DetailedRecordsBackend.cpp
Error.cpp
JSONBackend.cpp
Main.cpp
Parser.cpp
Record.cpp
SetTheory.cpp
StringMatcher.cpp
TableGenBackend.cpp
TableGenBackendSkeleton.cpp
TGLexer.cpp
TGParser.cpp
ADDITIONAL_HEADER_DIRS
${LLVM_MAIN_INCLUDE_DIR}/llvm/TableGen
LINK_COMPONENTS
Support
)