summaryrefslogtreecommitdiffstats
path: root/llvm/lib/TableGen/TGParser.h
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2011-10-05 22:42:44 +0000
committerDavid Greene <greened@obbligato.org>2011-10-05 22:42:44 +0000
commitdd1eb61298bb561751c71839d8fd2fa2c7192325 (patch)
tree56d01ce1fe530250166edb14e680b66ab3bc712d /llvm/lib/TableGen/TGParser.h
parentdd88abaa972659d2070dd85a6c2757c96467d48a (diff)
downloadbcm5719-llvm-dd1eb61298bb561751c71839d8fd2fa2c7192325.tar.gz
bcm5719-llvm-dd1eb61298bb561751c71839d8fd2fa2c7192325.zip
Parser Multidef Support
Add parser support to recognize multidefs. No processing on the multidef is done at this point. The grammar is: MultiDef = MULTIDEF ObjectName < Value, Declaration, Value > ObjectBody The first Value must be resolveable to a list and the second Value must be resolveable to an integer. The Declaration is a temporary value used as an iterator to refer to list items during processing. It may be passed into the ObjectBody where it will be substituted with the list value used to instantiate each def. llvm-svn: 141232
Diffstat (limited to 'llvm/lib/TableGen/TGParser.h')
-rw-r--r--llvm/lib/TableGen/TGParser.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/TableGen/TGParser.h b/llvm/lib/TableGen/TGParser.h
index db8a6202974..d4998d9147b 100644
--- a/llvm/lib/TableGen/TGParser.h
+++ b/llvm/lib/TableGen/TGParser.h
@@ -100,6 +100,7 @@ private: // Parser methods.
SMLoc DefmPrefixLoc);
bool ParseDefm(MultiClass *CurMultiClass);
bool ParseDef(MultiClass *CurMultiClass);
+ bool ParseMultiDef(MultiClass *CurMultiClass);
bool ParseTopLevelLet(MultiClass *CurMultiClass);
std::vector<LetRecord> ParseLetList();
OpenPOWER on IntegriCloud