summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-03-28 22:03:13 +0000
committerChris Lattner <sabre@nondot.org>2005-03-28 22:03:13 +0000
commit32e08b7c0694dd74277ec66453e9f6b11d5c01eb (patch)
treea0997c50f147aecd64c57277b5311479076bef5c /llvm/lib
parentb4427911247a39b178a5a8b27b54a2220a3ab48d (diff)
downloadbcm5719-llvm-32e08b7c0694dd74277ec66453e9f6b11d5c01eb.tar.gz
bcm5719-llvm-32e08b7c0694dd74277ec66453e9f6b11d5c01eb.zip
implement legalization of build_pair for nate
llvm-svn: 20901
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index 215cf78c5be..576232540e9 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -1590,6 +1590,14 @@ void SelectionDAGLegalize::ExpandOp(SDOperand Op, SDOperand &Lo, SDOperand &Hi){
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.
OpenPOWER on IntegriCloud