diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-10-24 06:25:09 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-10-24 06:25:09 +0000 |
| commit | 0083d8f38dda3340577147083e93fb49ad79ba92 (patch) | |
| tree | f736c03be450f7ad69ce503273860077759207c2 /llvm | |
| parent | c62877e9dab401c9fce5c156409a9f9390bb6eb6 (diff) | |
| download | bcm5719-llvm-0083d8f38dda3340577147083e93fb49ad79ba92.tar.gz bcm5719-llvm-0083d8f38dda3340577147083e93fb49ad79ba92.zip | |
switch some calls to SelectionDAG::getTargetNode to use
the one that takes an operand list instead of explicit
operands. There is one left though, the more interesting
one :)
llvm-svn: 43290
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/utils/TableGen/DAGISelEmitter.cpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/llvm/utils/TableGen/DAGISelEmitter.cpp b/llvm/utils/TableGen/DAGISelEmitter.cpp index e385c96835a..d61b01dd519 100644 --- a/llvm/utils/TableGen/DAGISelEmitter.cpp +++ b/llvm/utils/TableGen/DAGISelEmitter.cpp @@ -3718,8 +3718,9 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) { << " unsigned C = cast<ConstantSDNode>(N1)->getValue();\n" << " SDOperand Tmp = CurDAG->getTargetConstant(C, MVT::i32);\n" << " AddToISelQueue(Chain);\n" + << " SDOperand Ops[] = { Tmp, Chain };\n" << " return CurDAG->getTargetNode(TargetInstrInfo::LABEL,\n" - << " MVT::Other, Tmp, Chain);\n" + << " MVT::Other, Ops, 2);\n" << "}\n\n"; OS << "SDNode *Select_EXTRACT_SUBREG(const SDOperand &N) {\n" @@ -3728,8 +3729,9 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) { << " unsigned C = cast<ConstantSDNode>(N1)->getValue();\n" << " SDOperand Tmp = CurDAG->getTargetConstant(C, MVT::i32);\n" << " AddToISelQueue(N0);\n" + << " SDOperand Ops[] = { N0, Tmp };\n" << " return CurDAG->getTargetNode(TargetInstrInfo::EXTRACT_SUBREG,\n" - << " N.getValueType(), N0, Tmp);\n" + << " N.getValueType(), Ops, 2);\n" << "}\n\n"; OS << "SDNode *Select_INSERT_SUBREG(const SDOperand &N) {\n" @@ -3739,13 +3741,14 @@ void DAGISelEmitter::EmitInstructionSelector(std::ostream &OS) { << " unsigned C = cast<ConstantSDNode>(N2)->getValue();\n" << " SDOperand Tmp = CurDAG->getTargetConstant(C, MVT::i32);\n" << " AddToISelQueue(N1);\n" + << " SDOperand Ops[] = { N0, N1, Tmp };\n" << " if (N0.getOpcode() == ISD::UNDEF) {\n" << " return CurDAG->getTargetNode(TargetInstrInfo::INSERT_SUBREG,\n" - << " N.getValueType(), N1, Tmp);\n" + << " N.getValueType(), Ops+1, 2);\n" << " } else {\n" << " AddToISelQueue(N0);\n" << " return CurDAG->getTargetNode(TargetInstrInfo::INSERT_SUBREG,\n" - << " N.getValueType(), N0, N1, Tmp);\n" + << " N.getValueType(), Ops, 3);\n" << " }\n" << "}\n\n"; |

