mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-17 21:35:07 +00:00
Add support for global address nodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22940 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f6b184981e
commit
9b78db7f16
@ -115,6 +115,9 @@ unsigned SimpleSched::Emit(SDOperand Op) {
|
||||
MI->addZeroExtImm64Operand(C->getValue());
|
||||
} else if (RegisterSDNode*R =dyn_cast<RegisterSDNode>(Op.getOperand(i))) {
|
||||
MI->addRegOperand(R->getReg(), MachineOperand::Use);
|
||||
} else if (GlobalAddressSDNode *TGA =
|
||||
dyn_cast<GlobalAddressSDNode>(Op.getOperand(i))) {
|
||||
MI->addGlobalAddressOperand(TGA->getGlobal(), false, 0);
|
||||
} else {
|
||||
unsigned R = Emit(Op.getOperand(i));
|
||||
// Add an operand, unless this corresponds to a chain node.
|
||||
|
Loading…
x
Reference in New Issue
Block a user