Teach the DAGISelEmitter to not compute the variable_ops operand
authorDan Gohman <gohman@apple.com>
Sat, 31 May 2008 02:11:25 +0000 (02:11 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 31 May 2008 02:11:25 +0000 (02:11 +0000)
commite4c67cdab4a2ad2ff53183ad32e77e8608c9262d
tree66fede9210614cfc2f77baffd1b192175170dabd
parent28307418668f68e055688922ff8394d8a1ba8f15
Teach the DAGISelEmitter to not compute the variable_ops operand
index for the input pattern in terms of the output pattern. Instead
keep track of how many fixed operands the input pattern actually
has, and have the input matching code pass the output-emitting
function that index value. This simplifies the code, disentangles
variables_ops from the support for predication operations, and
makes variable_ops more robust.

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