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. +} + _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits