1
0
mirror of https://github.com/c64scene-ar/llvm-6502.git synced 2025-04-22 00:37:49 +00:00

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
This commit is contained in:
Vikram S. Adve 2002-03-18 03:23:29 +00:00
parent f1a51be375
commit ce0845aeba
2 changed files with 8 additions and 2 deletions

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

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