mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 04:29:21 +00:00
implement legalization of build_pair for nate
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20901 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7f4ec3b2e3
commit
d4e50bb2e2
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user