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:
parent
f1a51be375
commit
ce0845aeba
include/llvm/CodeGen
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user