llvm.org GIT mirror llvm / ce0845a
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 Vikram S. Adve 18 years ago
2 changed file(s) with 8 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
3030 unsigned currentTmpValuesSize;
3131 std::hash_set constantsForConstPool;
3232 std::hash_map offsets;
33 // hash_map offsetsFromSP;
3433
3534 public:
3635 /*ctor*/ MachineCodeForMethod(const Method* method,
7170
7271 inline void markAsLeafMethod() { compiledAsLeaf = true; }
7372
73 int computeOffsetforLocalVar (const TargetMachine& target,
74 const Value* local,
75 unsigned int size = 0);
76
7477 int allocateLocalVar (const TargetMachine& target,
7578 const Value* local,
7679 unsigned int size = 0);
3030 unsigned currentTmpValuesSize;
3131 std::hash_set constantsForConstPool;
3232 std::hash_map offsets;
33 // hash_map offsetsFromSP;
3433
3534 public:
3635 /*ctor*/ MachineCodeForMethod(const Method* method,
7170
7271 inline void markAsLeafMethod() { compiledAsLeaf = true; }
7372
73 int computeOffsetforLocalVar (const TargetMachine& target,
74 const Value* local,
75 unsigned int size = 0);
76
7477 int allocateLocalVar (const TargetMachine& target,
7578 const Value* local,
7679 unsigned int size = 0);