[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Mar 28 14:03:29 PST 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
LegalizeDAG.cpp updated: 1.62 -> 1.63
---
Log message:
implement legalization of build_pair for nate
---
Diffs of the changes: (+8 -0)
LegalizeDAG.cpp | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.62 llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.63
--- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp:1.62 Fri Mar 25 19:29:23 2005
+++ llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp Mon Mar 28 16:03:13 2005
@@ -1590,6 +1590,14 @@
break;
}
+ case ISD::BUILD_PAIR:
+ // Legalize both operands. FIXME: in the future we should handle the case
+ // where the two elements are not legal.
+ assert(isTypeLegal(NVT) && "Cannot expand this multiple times yet!");
+ Lo = LegalizeOp(Node->getOperand(0));
+ Hi = LegalizeOp(Node->getOperand(1));
+ break;
+
case ISD::LOAD: {
SDOperand Ch = LegalizeOp(Node->getOperand(0)); // Legalize the chain.
SDOperand Ptr = LegalizeOp(Node->getOperand(1)); // Legalize the pointer.
More information about the llvm-commits
mailing list