summaryrefslogtreecommitdiffstats
path: root/llvm/include
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
commit522ef67fb2eb5f49ee097bceb3135388dda12771 (patch)
tree641742788b83c3a468ef4bc8308f35a556bf2bc9 /llvm/include
parentddc6fb125e411709757e2ba3271dd1364ad5d53a (diff)
downloadbcm5719-llvm-522ef67fb2eb5f49ee097bceb3135388dda12771.tar.gz
bcm5719-llvm-522ef67fb2eb5f49ee097bceb3135388dda12771.zip
Add documentation to the TargetFrameInfo class, contributed by Vladimir Prus
llvm-svn: 14060
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Target/TargetFrameInfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/include/llvm/Target/TargetFrameInfo.h b/llvm/include/llvm/Target/TargetFrameInfo.h
index bdcf7930a0f..2be5ab4857d 100644
--- a/llvm/include/llvm/Target/TargetFrameInfo.h
+++ b/llvm/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
OpenPOWER on IntegriCloud