[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Jan 20 10:51:09 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAG.cpp updated: 1.43 -> 1.44
---
Log message:
implement add_parts/sub_parts.
---
Diffs of the changes: (+8 -3)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.43 llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.44
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:1.43 Wed Jan 19 12:01:40 2005
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp Thu Jan 20 12:50:55 2005
@@ -889,7 +889,12 @@
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 @@
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";
More information about the llvm-commits
mailing list