summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-03-14 21:15:20 +0000
committerHal Finkel <hfinkel@anl.gov>2013-03-14 21:15:20 +0000
commit0cc52c67dbc2e073e3f7f34e05e3e7cd17ba9745 (patch)
tree19256c7b9f973060bc983cbd6ab0d44cbca29525 /include
parent3080d23fde4981835d8a7faf46c152441fadb11f (diff)
downloadllvm-0cc52c67dbc2e073e3f7f34e05e3e7cd17ba9745.tar.gz
llvm-0cc52c67dbc2e073e3f7f34e05e3e7cd17ba9745.tar.bz2
llvm-0cc52c67dbc2e073e3f7f34e05e3e7cd17ba9745.tar.xz
Move estimateStackSize from ARM into MachineFrameInfo
This is a generic function (derived from PEI); moving it into MachineFrameInfo eliminates a current redundancy between the ARM and AArch64 backends, and will allow it to be used by the PowerPC target code. No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177111 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/MachineFrameInfo.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h
index 93d77287d7..cdec7e6637 100644
--- a/include/llvm/CodeGen/MachineFrameInfo.h
+++ b/include/llvm/CodeGen/MachineFrameInfo.h
@@ -419,6 +419,9 @@ public:
///
void setStackSize(uint64_t Size) { StackSize = Size; }
+ /// Estimate and return the size of the stack frame.
+ unsigned estimateStackSize(const MachineFunction &MF) const;
+
/// getOffsetAdjustment - Return the correction for frame offsets.
///
int getOffsetAdjustment() const { return OffsetAdjustment; }