llvm-6502/lib/TableGen
Jakob Stoklund Olesen 4717fd4c0f Allow TableGen DAG arguments to be just a name.
DAG arguments can optionally be named:

  (dag node, node:$name)

With this change, the node is also optional:

  (dag node, node:$name, $name)

The missing node is treated as an UnsetInit, so the above is equivalent
to:

  (dag node, node:$name, ?:$name)

This syntax is useful in output patterns where we currently require the
types of variables to be repeated:

  def : Pat<(subc i32:$b, i32:$c), (SUBCCrr i32:$b, i32:$c)>;

This is preferable:

  def : Pat<(subc i32:$b, i32:$c), (SUBCCrr $b, $c)>;

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177843 91177308-0d34-0410-b5e6-96231b3b80d8
2013-03-24 19:36:51 +00:00
..
CMakeLists.txt
Error.cpp Make sure TableGen exits with an error code after printing errors. 2013-03-20 20:43:11 +00:00
LLVMBuild.txt
Main.cpp Make sure TableGen exits with an error code after printing errors. 2013-03-20 20:43:11 +00:00
Makefile
Record.cpp
StringMatcher.cpp
TableGenBackend.cpp
TGLexer.cpp
TGLexer.h
TGParser.cpp Allow TableGen DAG arguments to be just a name. 2013-03-24 19:36:51 +00:00
TGParser.h