[llvm-commits] CVS: llvm/lib/Target/ARM/ARMRegisterInfo.cpp ARMRegisterInfo.h ARMRegisterInfo.td
Evan Cheng
evan.cheng at apple.com
Mon Jan 22 16:53:00 PST 2007
Changes in directory llvm/lib/Target/ARM:
ARMRegisterInfo.cpp updated: 1.38 -> 1.39
ARMRegisterInfo.h updated: 1.5 -> 1.6
ARMRegisterInfo.td updated: 1.8 -> 1.9
---
Log message:
hasFP() is now a virtual method of MRegisterInfo.
---
Diffs of the changes: (+5 -2)
ARMRegisterInfo.cpp | 2 +-
ARMRegisterInfo.h | 2 ++
ARMRegisterInfo.td | 3 ++-
3 files changed, 5 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/ARM/ARMRegisterInfo.cpp
diff -u llvm/lib/Target/ARM/ARMRegisterInfo.cpp:1.38 llvm/lib/Target/ARM/ARMRegisterInfo.cpp:1.39
--- llvm/lib/Target/ARM/ARMRegisterInfo.cpp:1.38 Sat Jan 20 04:22:33 2007
+++ llvm/lib/Target/ARM/ARMRegisterInfo.cpp Mon Jan 22 18:52:44 2007
@@ -277,7 +277,7 @@
/// pointer register. This is true if the function has variable sized allocas
/// or if frame pointer elimination is disabled.
///
-static bool hasFP(const MachineFunction &MF) {
+bool ARMRegisterInfo::hasFP(const MachineFunction &MF) const {
return NoFramePointerElim || MF.getFrameInfo()->hasVarSizedObjects();
}
Index: llvm/lib/Target/ARM/ARMRegisterInfo.h
diff -u llvm/lib/Target/ARM/ARMRegisterInfo.h:1.5 llvm/lib/Target/ARM/ARMRegisterInfo.h:1.6
--- llvm/lib/Target/ARM/ARMRegisterInfo.h:1.5 Fri Jan 19 01:51:42 2007
+++ llvm/lib/Target/ARM/ARMRegisterInfo.h Mon Jan 22 18:52:44 2007
@@ -68,6 +68,8 @@
const TargetRegisterClass* const* getCalleeSavedRegClasses() const;
+ bool hasFP(const MachineFunction &MF) const;
+
void eliminateCallFramePseudoInstr(MachineFunction &MF,
MachineBasicBlock &MBB,
MachineBasicBlock::iterator I) const;
Index: llvm/lib/Target/ARM/ARMRegisterInfo.td
diff -u llvm/lib/Target/ARM/ARMRegisterInfo.td:1.8 llvm/lib/Target/ARM/ARMRegisterInfo.td:1.9
--- llvm/lib/Target/ARM/ARMRegisterInfo.td:1.8 Fri Jan 19 20:09:25 2007
+++ llvm/lib/Target/ARM/ARMRegisterInfo.td Mon Jan 22 18:52:44 2007
@@ -150,6 +150,7 @@
GPRClass::iterator
GPRClass::allocation_order_end(const MachineFunction &MF) const {
const TargetMachine &TM = MF.getTarget();
+ const MRegisterInfo *RI = TM.getRegisterInfo();
const ARMSubtarget &Subtarget = TM.getSubtarget<ARMSubtarget>();
GPRClass::iterator I;
if (Subtarget.isThumb())
@@ -167,7 +168,7 @@
}
// Mac OS X requires FP not to be clobbered for backtracing purpose.
- return (Subtarget.isTargetDarwin() || hasFP(MF)) ? I-1 : I;
+ return (Subtarget.isTargetDarwin() || RI->hasFP(MF)) ? I-1 : I;
}
}];
}
More information about the llvm-commits
mailing list