* Add utility methods which make common cases easier

llvm-svn: 5207
This commit is contained in:
Chris Lattner 2003-01-13 00:15:24 +00:00
parent 5d4b55f69f
commit 55f00fa00f
1 changed files with 12 additions and 2 deletions

View File

@ -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