[llvm-commits] CVS: llvm/lib/Target/MRegisterInfo.cpp
Jim Laskey
jlaskey at apple.com
Fri Apr 7 09:35:05 PDT 2006
Changes in directory llvm/lib/Target:
MRegisterInfo.cpp updated: 1.13 -> 1.14
---
Log message:
Foundation for call frame information.
---
Diffs of the changes: (+15 -0)
MRegisterInfo.cpp | 15 +++++++++++++++
1 files changed, 15 insertions(+)
Index: llvm/lib/Target/MRegisterInfo.cpp
diff -u llvm/lib/Target/MRegisterInfo.cpp:1.13 llvm/lib/Target/MRegisterInfo.cpp:1.14
--- llvm/lib/Target/MRegisterInfo.cpp:1.13 Tue Mar 28 07:48:33 2006
+++ llvm/lib/Target/MRegisterInfo.cpp Fri Apr 7 11:34:45 2006
@@ -44,6 +44,13 @@
return Allocatable;
}
+/// getStackDirection - This method should return the factor by which stacks
+/// grow. The tyical value is -4 which is the grows negatively in 4 byte
+/// increments.
+int MRegisterInfo::getStackDirection() const {
+ return -sizeof(int32_t);
+}
+
/// getLocation - This method should return the actual location of a frame
/// variable given the frame index. The location is returned in ML.
/// Subclasses should override this method for special handling of frame
@@ -54,3 +61,11 @@
ML.set(getFrameRegister(MF),
MFI->getObjectOffset(Index) + MFI->getStackSize());
}
+
+/// getInitialFrameState - Returns a list of machine moves that are assumed
+/// on entry to a function.
+void
+MRegisterInfo::getInitialFrameState(std::vector<MachineMove *> &Moves) const {
+ // Default is to do nothing.
+}
+
More information about the llvm-commits
mailing list