summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-02 03:30:42 +0000
committerChris Lattner <sabre@nondot.org>2005-04-02 03:30:42 +0000
commit5b7bb56ef89e73851493e5c41d608330c03c7e03 (patch)
tree35fdeaf023deb75f623ea069092960356926a055 /llvm/lib/CodeGen
parentdbd130cf46456051a7fca9c4222795f55d562c29 (diff)
downloadbcm5719-llvm-5b7bb56ef89e73851493e5c41d608330c03c7e03.tar.gz
bcm5719-llvm-5b7bb56ef89e73851493e5c41d608330c03c7e03.zip
Print some new nodes
llvm-svn: 21001
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index 023848a9f91..7f15e19f9d5 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/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<MVT::ValueType> 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";
OpenPOWER on IntegriCloud