Parser Multidef Support
authorDavid Greene <greened@obbligato.org>
Wed, 5 Oct 2011 22:42:44 +0000 (22:42 +0000)
committerDavid Greene <greened@obbligato.org>
Wed, 5 Oct 2011 22:42:44 +0000 (22:42 +0000)
commit6da674cda1587c9b09e01f65219cec54f54d90b8
tree0b5b551266319e2aa0c47231bfb2ff8456de9a59
parentb9c29eaa3d2c39ce549c4bb2849a4d901acc8368
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
lib/TableGen/TGParser.cpp
lib/TableGen/TGParser.h