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 | 1fe9b4098197c52ea01c20c7fa169e62686d96fb (patch) | |
| tree | 7ffb6b2f76360e3e3b77ff7737568cbd2f0eb693 | |
| parent | ad1ffcc3585d0caa9b36046f6687d5f68a183516 (diff) | |
| download | bcm5719-llvm-1fe9b4098197c52ea01c20c7fa169e62686d96fb.tar.gz bcm5719-llvm-1fe9b4098197c52ea01c20c7fa169e62686d96fb.zip | |
implement add_parts/sub_parts.
llvm-svn: 19714
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 762061fa0c7..c91586b4d42 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/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"; |

