[llvm-commits] CVS: llvm/include/llvm/CodeGen/MachineFrameInfo.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Jan 6 12:25:01 PST 2003
Changes in directory llvm/include/llvm/CodeGen:
MachineFrameInfo.h updated: 1.2 -> 1.3
---
Log message:
Add helper functions for easier access
---
Diffs of the changes:
Index: llvm/include/llvm/CodeGen/MachineFrameInfo.h
diff -u llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.2 llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.3
--- llvm/include/llvm/CodeGen/MachineFrameInfo.h:1.2 Sat Dec 28 15:08:25 2002
+++ llvm/include/llvm/CodeGen/MachineFrameInfo.h Mon Jan 6 12:24:15 2003
@@ -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 {
@@ -180,6 +184,12 @@
Objects.push_back(StackObject(Size, Alignment, -1));
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
More information about the llvm-commits
mailing list