mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-21 04:41:34 +00:00
Add support for global address nodes
llvm-svn: 22940
This commit is contained in:
parent
0c4565bf91
commit
5b7488224d
@ -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