aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineFrameInfo.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-01-13 00:15:24 +0000
committerChris Lattner <sabre@nondot.org>2003-01-13 00:15:24 +0000
commit09a5b0b6a351aa5c12fdd1f076fcf0943f5382ac (patch)
tree67b8afa47220f455c266174dccbd01b0e64ff0b0 /include/llvm/CodeGen/MachineFrameInfo.h
parent29dd209228125b7ae7431edb9278b6038ef4a87f (diff)
* Add utility methods which make common cases easier
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5207 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFrameInfo.h')
-rw-r--r--include/llvm/CodeGen/MachineFrameInfo.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h
index 6d640a6b5a..45a24cc70b 100644
--- a/include/llvm/CodeGen/MachineFrameInfo.h
+++ b/include/llvm/CodeGen/MachineFrameInfo.h
@@ -28,8 +28,12 @@
//
//===----------------------------------------------------------------------===//
-#ifndef LLVM_CODEGEN_FUNCTIONFRAMEINFO_H
-#define LLVM_CODEGEN_FUNCTIONFRAMEINFO_H
+#ifndef LLVM_CODEGEN_MACHINEFRAMEINFO_H
+#define LLVM_CODEGEN_MACHINEFRAMEINFO_H
+
+class TargetData;
+class TargetRegisterClass;
+#include <vector>
class MachineFrameInfo {
@@ -181,6 +185,12 @@ public:
return Objects.size()-NumFixedObjects-1;
}
+ /// CreateStackObject - Create a stack object for a value of the specified
+ /// LLVM type or register class.
+ ///
+ int CreateStackObject(const Type *Ty, const TargetData &TD);
+ int CreateStackObject(const TargetRegisterClass *RC);
+
/// CreateVariableSizedObject - Notify the MachineFrameInfo object that a
/// variable sized object has been created. This must be created whenever a
/// variable sized object is created, whether or not the index returned is