mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Add BasicBlock list to MchineFunction that will eventually be the only
way to access MachineBasicBlocks. For now, it is never filled. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4324 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -12,7 +12,9 @@
|
||||
#include "llvm/CodeGen/MachineBasicBlock.h"
|
||||
#include "Support/NonCopyable.h"
|
||||
#include "Support/HashExtras.h"
|
||||
#include <Support/hash_set>
|
||||
#include "Support/hash_set"
|
||||
#include "Support/ilist"
|
||||
|
||||
class Value;
|
||||
class Function;
|
||||
class Constant;
|
||||
@ -24,11 +26,14 @@ Pass *createMachineCodeConstructionPass(TargetMachine &Target);
|
||||
Pass *createMachineCodeDestructionPass();
|
||||
|
||||
class MachineFunction : private Annotation {
|
||||
hash_set<const Constant*> constantsForConstPool;
|
||||
hash_map<const Value*, int> offsets;
|
||||
const Function* method;
|
||||
const Function *method;
|
||||
|
||||
// List of machine basic blocks in function
|
||||
iplist<MachineBasicBlock> BasicBlocks;
|
||||
|
||||
// FIXME: State should be held elsewhere...
|
||||
hash_set<const Constant*> constantsForConstPool;
|
||||
hash_map<const Value*, int> offsets;
|
||||
unsigned staticStackSize;
|
||||
unsigned automaticVarsSize;
|
||||
unsigned regSpillsSize;
|
||||
|
Reference in New Issue
Block a user