From: Chris Lattner Date: Sat, 2 Apr 2005 03:30:42 +0000 (+0000) Subject: Print some new nodes X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=41be951a47d2141a3c6693c0b598509c889f3f37;p=oota-llvm.git Print some new nodes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21001 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 023848a9f91..7f15e19f9d5 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -924,7 +924,9 @@ SDOperand SelectionDAG::getNode(unsigned Opcode, MVT::ValueType VT, default: // FIXME: MEMOIZE!! SDNode *N = new SDNode(Opcode, Children); - if (Opcode != ISD::ADD_PARTS && Opcode != ISD::SUB_PARTS) { + if (Opcode != ISD::ADD_PARTS && Opcode != ISD::SUB_PARTS && + Opcode != ISD::SRA_PARTS && Opcode != ISD::SRL_PARTS && + Opcode != ISD::SHL_PARTS) { N->setValueTypes(VT); } else { std::vector V(N->getNumOperands()/2, VT); @@ -1131,6 +1133,9 @@ const char *SDNode::getOperationName() const { case ISD::SELECT: return "select"; case ISD::ADD_PARTS: return "add_parts"; case ISD::SUB_PARTS: return "sub_parts"; + case ISD::SHL_PARTS: return "shl_parts"; + case ISD::SRA_PARTS: return "sra_parts"; + case ISD::SRL_PARTS: return "srl_parts"; // Conversion operators. case ISD::SIGN_EXTEND: return "sign_extend";