llvm-project/llvm/lib/TableGen
Jakob Stoklund Olesen 91a5848cab 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)>;

llvm-svn: 177843
2013-03-24 19:36:51 +00:00
..
CMakeLists.txt Remove exception handling usage from tblgen. 2012-10-25 20:33:17 +00:00
Error.cpp Make sure TableGen exits with an error code after printing errors. 2013-03-20 20:43:11 +00:00
LLVMBuild.txt LLVMBuild: Remove trailing newline, which irked me. 2011-12-12 19:48:00 +00:00
Main.cpp Make sure TableGen exits with an error code after printing errors. 2013-03-20 20:43:11 +00:00
Makefile Remove exception handling usage from tblgen. 2012-10-25 20:33:17 +00:00
Record.cpp Make helpers static. Add missing include so LLVMInitializeObjCARCOpts gets C linkage. 2013-02-15 12:30:38 +00:00
StringMatcher.cpp Emit memcmp directly from the StringMatcherEmitter. 2012-05-20 18:10:42 +00:00
TGLexer.cpp tblgen: Diagnose duplicate includes. 2013-02-07 04:30:39 +00:00
TGLexer.h tblgen: Diagnose duplicate includes. 2013-02-07 04:30:39 +00:00
TGParser.cpp Allow TableGen DAG arguments to be just a name. 2013-03-24 19:36:51 +00:00
TGParser.h tblgen: Diagnose duplicate includes. 2013-02-07 04:30:39 +00:00
TableGenBackend.cpp A bugfix for tblgen, in the function ‘emitSourceFileHeader’. 2013-01-28 07:35:33 +00:00