aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/CodeGenDAGPatterns.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-03-24 19:36:51 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-03-24 19:36:51 +0000
commit91a5848cab499b280bbab58b4896af4a20f826fc (patch)
tree81dc0af7f65593d216820b0eb177261fcb3cc474 /llvm/utils/TableGen/CodeGenDAGPatterns.cpp
parentef89ae016d8ad7bf51b3156cdba2c425923ada1d (diff)
downloadllvm-91a5848cab499b280bbab58b4896af4a20f826fc.zip
llvm-91a5848cab499b280bbab58b4896af4a20f826fc.tar.gz
llvm-91a5848cab499b280bbab58b4896af4a20f826fc.tar.bz2
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
Diffstat (limited to 'llvm/utils/TableGen/CodeGenDAGPatterns.cpp')
0 files changed, 0 insertions, 0 deletions