[PATCH] D119899: [TableGen] Add a library-based entry point for parsing td files
River Riddle via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 15 15:20:29 PST 2022
rriddle created this revision.
Herald added subscribers: bollu, hiraditya, mgorny.
rriddle requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
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).
Depends on D119782 <https://reviews.llvm.org/D119782>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D119899
Files:
llvm/include/llvm/TableGen/Parser.h
llvm/lib/TableGen/CMakeLists.txt
llvm/lib/TableGen/Parser.cpp
llvm/unittests/TableGen/CMakeLists.txt
llvm/unittests/TableGen/ParserEntryPointTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119899.409074.patch
Type: text/x-patch
Size: 5141 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220215/12e47583/attachment.bin>
More information about the llvm-commits
mailing list