diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-11-17 21:19:15 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-11-17 21:19:15 +0000 |
commit | 9dea41d9e1c9e288630db503668468560aa4286e (patch) | |
tree | 2e8e00db47551e8927b02e080e43515cadd83a48 /include/llvm/CodeGen/MachineFrameInfo.h | |
parent | 7d689e8b62575b7e7d2ca8ff10e4cbd06a5cca55 (diff) |
Hopefully a good crack at making debugging work on intel -disable-fp-elim.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31830 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFrameInfo.h')
-rw-r--r-- | include/llvm/CodeGen/MachineFrameInfo.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h index be6f1b9c42..1f111abe51 100644 --- a/include/llvm/CodeGen/MachineFrameInfo.h +++ b/include/llvm/CodeGen/MachineFrameInfo.h @@ -112,6 +112,14 @@ class MachineFrameInfo { /// unsigned StackSize; + /// OffsetAdjustment - The amount that a frame offset needs to be adjusted to + /// have the actual offset from the stack/frame pointer. The calculation is + /// MFI->getObjectOffset(Index) + StackSize - TFI.getOffsetOfLocalArea() + + /// OffsetAdjustment. If OffsetAdjustment is zero (default) then offsets are + /// away from TOS. If OffsetAdjustment == StackSize then offsets are toward + /// TOS. + int OffsetAdjustment; + /// MaxAlignment - The prolog/epilog code inserter may process objects /// that require greater alignment than the default alignment the target /// provides. To handle this, MaxAlignment is set to the maximum alignment @@ -148,7 +156,7 @@ class MachineFrameInfo { public: MachineFrameInfo() { - NumFixedObjects = StackSize = MaxAlignment = 0; + NumFixedObjects = StackSize = OffsetAdjustment = MaxAlignment = 0; HasVarSizedObjects = false; HasCalls = false; MaxCallFrameSize = 0; @@ -212,6 +220,14 @@ public: /// setStackSize - Set the size of the stack... /// void setStackSize(unsigned Size) { StackSize = Size; } + + /// getOffsetAdjustment - Return the correction for frame offsets. + /// + int getOffsetAdjustment() const { return OffsetAdjustment; } + + /// setOffsetAdjustment - Set the correction for frame offsets. + /// + void setOffsetAdjustment(int Adj) { OffsetAdjustment = Adj; } /// getMaxAlignment - Return the alignment in bytes that this function must be /// aligned to, which is greater than the default stack alignment provided by |