llvm-6502/lib/TableGen
David Greene f3744a0cf9 Make ID Parsing More Flexible
Add a mode control to value and ID parsers.  The two modes are:

- Parse a value.  Expect the parsed ID to map to an existing object.

- Parse a name.  Expect the parsed ID to not map to any existing object.

The first is used when parsing an identifier to be looked up, for
example a record field or template argument.  The second is used for
parsing declarations.  Paste functionality implies that declarations
can contain arbitrary expressions so we need to be able to call into
the general value parser to parse declarations with paste operators.
So we need a way to parse a value-like thing without expecting that
the result will map to some existing object.  This parse mode provides
that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142519 91177308-0d34-0410-b5e6-96231b3b80d8
2011-10-19 13:04:20 +00:00
..
CMakeLists.txt Revert r141079: tblgen: add preprocessor as a separate mode 2011-10-08 12:39:26 +00:00
Error.cpp Make SMDiagnostic a little more sane. Instead of passing around note/warning/error as a 2011-10-16 05:43:57 +00:00
Main.cpp Revert r141079: tblgen: add preprocessor as a separate mode 2011-10-08 12:39:26 +00:00
Makefile
Record.cpp Add NAME Member 2011-10-19 13:04:13 +00:00
TableGenBackend.cpp
TGLexer.cpp Disambiguate Numbers and Identifiers 2011-10-19 13:03:39 +00:00
TGLexer.h Add Peek 2011-10-19 13:03:35 +00:00
TGParser.cpp Make ID Parsing More Flexible 2011-10-19 13:04:20 +00:00
TGParser.h Make ID Parsing More Flexible 2011-10-19 13:04:20 +00:00