mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-18 10:31:57 +00:00
Add support for frame index nodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22956 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
99baddaf57
commit
81e72b13d7
@ -121,6 +121,9 @@ unsigned SimpleSched::Emit(SDOperand Op) {
|
||||
} else if (BasicBlockSDNode *BB =
|
||||
dyn_cast<BasicBlockSDNode>(Op.getOperand(i))) {
|
||||
MI->addMachineBasicBlockOperand(BB->getBasicBlock());
|
||||
} else if (FrameIndexSDNode *FI =
|
||||
dyn_cast<FrameIndexSDNode>(Op.getOperand(i))) {
|
||||
MI->addFrameIndexOperand(FI->getIndex());
|
||||
} else {
|
||||
unsigned R = Emit(Op.getOperand(i));
|
||||
// Add an operand, unless this corresponds to a chain node.
|
||||
@ -136,9 +139,7 @@ unsigned SimpleSched::Emit(SDOperand Op) {
|
||||
default:
|
||||
Op.Val->dump();
|
||||
assert(0 && "This target-independent node should have been selected!");
|
||||
case ISD::EntryToken:
|
||||
case ISD::BasicBlock:
|
||||
break;
|
||||
case ISD::EntryToken: break;
|
||||
case ISD::TokenFactor:
|
||||
for (unsigned i = 0, e = Op.getNumOperands(); i != e; ++i)
|
||||
Emit(Op.getOperand(i));
|
||||
|
Loading…
Reference in New Issue
Block a user