diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-03-18 03:23:29 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2002-03-18 03:23:29 +0000 |
commit | ce0845aeba7f0b0f5bf33523755c25e2bb09eac1 (patch) | |
tree | e461ac82c8268b97791366da5bdc7c7509fefba1 /include/llvm/CodeGen/MachineFunction.h | |
parent | f1a51be3757f750a44f473b0bccd5905d6e3f029 (diff) |
Added function computeOffsetforLocalVar to check how big the
offset-from-FP will be before allocating space for a local variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1900 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineFunction.h')
-rw-r--r-- | include/llvm/CodeGen/MachineFunction.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineFunction.h b/include/llvm/CodeGen/MachineFunction.h index 3ef4b10d3f..631e823719 100644 --- a/include/llvm/CodeGen/MachineFunction.h +++ b/include/llvm/CodeGen/MachineFunction.h @@ -31,7 +31,6 @@ class MachineCodeForMethod : private Annotation { unsigned currentTmpValuesSize; std::hash_set<const Constant*> constantsForConstPool; std::hash_map<const Value*, int> offsets; - // hash_map<const Value*, int> offsetsFromSP; public: /*ctor*/ MachineCodeForMethod(const Method* method, @@ -72,6 +71,10 @@ public: inline void markAsLeafMethod() { compiledAsLeaf = true; } + int computeOffsetforLocalVar (const TargetMachine& target, + const Value* local, + unsigned int size = 0); + int allocateLocalVar (const TargetMachine& target, const Value* local, unsigned int size = 0); |