diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-20 18:50:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-20 18:50:55 +0000 |
commit | 17eee18f40c79cd6ed00985201d395f8da50c417 (patch) | |
tree | 88b46a24ead746269435f28c7e0d7955fb96fecc /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 5880b9fa3e964efdb5465fe740f1c7aaf054766a (diff) |
implement add_parts/sub_parts.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 762061fa0c..c91586b4d4 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -889,7 +889,12 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, default: // FIXME: MEMOIZE!! SDNode *N = new SDNode(Opcode, Children); - N->setValueTypes(VT); + if (Opcode != ISD::ADD_PARTS && Opcode != ISD::SUB_PARTS) { + N->setValueTypes(VT); + } else { + std::vector<MVT::ValueType> V(N->getNumOperands()/2, VT); + N->setValueTypes(V); + } AllNodes.push_back(N); return SDOperand(N, 0); } @@ -1075,8 +1080,8 @@ const char *SDNode::getOperationName() const { case ISD::SRL: return "srl"; case ISD::SELECT: return "select"; - case ISD::ADDC: return "addc"; - case ISD::SUBB: return "subb"; + case ISD::ADD_PARTS: return "add_parts"; + case ISD::SUB_PARTS: return "sub_parts"; // Conversion operators. case ISD::SIGN_EXTEND: return "sign_extend"; |