diff options
author | David Greene <greened@obbligato.org> | 2011-10-05 22:42:44 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2011-10-05 22:42:44 +0000 |
commit | 6da674cda1587c9b09e01f65219cec54f54d90b8 (patch) | |
tree | 0b5b551266319e2aa0c47231bfb2ff8456de9a59 /lib/TableGen/TGParser.h | |
parent | b9c29eaa3d2c39ce549c4bb2849a4d901acc8368 (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141232 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/TableGen/TGParser.h')
-rw-r--r-- | lib/TableGen/TGParser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/TableGen/TGParser.h b/lib/TableGen/TGParser.h index db8a620297..d4998d9147 100644 --- a/lib/TableGen/TGParser.h +++ b/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(); |