* Add utility methods which make common cases easier
authorChris Lattner <sabre@nondot.org>
Mon, 13 Jan 2003 00:15:24 +0000 (00:15 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 13 Jan 2003 00:15:24 +0000 (00:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5207 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineFrameInfo.h

index 6d640a6b5a00bdc105c61e6886d7c3aaed13d542..45a24cc70beba97f52fb02f73e7b3dab5a40b3b6 100644 (file)
 //
 //===----------------------------------------------------------------------===//
 
-#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