[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
Chris Lattner
lattner at cs.uiuc.edu
Fri Aug 19 15:38:36 PDT 2005
Changes in directory llvm/lib/CodeGen/SelectionDAG:
ScheduleDAG.cpp updated: 1.7 -> 1.8
---
Log message:
Add support for global address nodes
---
Diffs of the changes: (+3 -0)
ScheduleDAG.cpp | 3 +++
1 files changed, 3 insertions(+)
Index: llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.7 llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.8
--- llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp:1.7 Fri Aug 19 16:43:53 2005
+++ llvm/lib/CodeGen/SelectionDAG/ScheduleDAG.cpp Fri Aug 19 17:38:24 2005
@@ -115,6 +115,9 @@
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.
More information about the llvm-commits
mailing list