aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetFrameInfo.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-06-08 06:23:17 +0000
committerChris Lattner <sabre@nondot.org>2004-06-08 06:23:17 +0000
commitc07c0df634d31849ac659234e4718b57ddacb882 (patch)
tree056fa7b8af8fadef3fbfdcfab66f655df2103a74 /include/llvm/Target/TargetFrameInfo.h
parent96684ef886011ee212b3a671df6b354ad08c1701 (diff)
downloadexternal_llvm-c07c0df634d31849ac659234e4718b57ddacb882.zip
external_llvm-c07c0df634d31849ac659234e4718b57ddacb882.tar.gz
external_llvm-c07c0df634d31849ac659234e4718b57ddacb882.tar.bz2
Add documentation to the TargetFrameInfo class, contributed by Vladimir Prus
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetFrameInfo.h')
-rw-r--r--include/llvm/Target/TargetFrameInfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetFrameInfo.h b/include/llvm/Target/TargetFrameInfo.h
index bdcf793..2be5ab4 100644
--- a/include/llvm/Target/TargetFrameInfo.h
+++ b/include/llvm/Target/TargetFrameInfo.h
@@ -18,6 +18,13 @@ namespace llvm {
class MachineFunction;
+/// Information about stack frame layout on the target. It holds the direction
+/// of stack growth, the known stack alignment on entry to each function, and
+/// the offset to the locals area.
+///
+/// The offset to the local area is the offset from the stack pointer on
+/// function entry to the first location where function data (local variables,
+/// spill locations) can be stored.
struct TargetFrameInfo {
enum StackDirection {
StackGrowsUp, // Adding to the stack increases the stack address