Fix a tblgen problem handling variable_ops in tblgen instruction
authorDan Gohman <gohman@apple.com>
Thu, 29 May 2008 19:57:41 +0000 (19:57 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 29 May 2008 19:57:41 +0000 (19:57 +0000)
commitd35121ad00667d93ea779a722dbee7d022410815
tree167ea139429affa229aaff59e15188e662dee79e
parentb99e2e20b2ad1e7c5bf613fba4ead50e9654876c
Fix a tblgen problem handling variable_ops in tblgen instruction
definitions. This adds a new construct, "discard", for indicating
that a named node in the input matching pattern is to be discarded,
instead of corresponding to a node in the output pattern. This
allows tblgen to know where the arguments for the varaible_ops are
supposed to begin.

This fixes "rdar://5791600", whatever that is ;-).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51699 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/Target.td
lib/Target/TargetSelectionDAG.td
lib/Target/X86/X86ISelDAGToDAG.cpp
lib/Target/X86/X86InstrInfo.td
utils/TableGen/CodeGenDAGPatterns.cpp
utils/TableGen/CodeGenInstruction.cpp
utils/TableGen/DAGISelEmitter.cpp
utils/TableGen/InstrInfoEmitter.cpp