aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/RegAlloc/PhyRegAlloc.h
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-10-24 21:21:58 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-10-24 21:21:58 +0000
commit8fc493430c2265da5b7c46cf50ab93a75a00b2f3 (patch)
tree8efe68ba587a8eab0c22e73c0634e16480f794eb /lib/CodeGen/RegAlloc/PhyRegAlloc.h
parent3e43026095f273919daed6633cc838700f837a77 (diff)
Publicize the type of FnAllocState.
Prototype option to save state in a global instead of as a Constant in the Module. (Turned off, for now, with the on/off switch welded in the off position. You get the idea.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9500 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAlloc/PhyRegAlloc.h')
-rw-r--r--lib/CodeGen/RegAlloc/PhyRegAlloc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h
index db23f48161..5fdd60f7ee 100644
--- a/lib/CodeGen/RegAlloc/PhyRegAlloc.h
+++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.h
@@ -85,11 +85,11 @@ class PhyRegAlloc : public FunctionPass {
AddedInstrns AddedInstrAtEntry; // to store instrns added at entry
const LoopInfo *LoopDepthCalc; // to calculate loop depths
- std::map<const Function *, std::vector<AllocInfo> > FnAllocState;
-
PhyRegAlloc(const PhyRegAlloc&); // DO NOT IMPLEMENT
void operator=(const PhyRegAlloc&); // DO NOT IMPLEMENT
public:
+ typedef std::map<const Function *, std::vector<AllocInfo> > SavedStateMapTy;
+
inline PhyRegAlloc (const TargetMachine &TM_) :
TM (TM_), MRI (TM.getRegInfo ()),
NumOfRegClasses (MRI.getNumOfRegClasses ()) { }
@@ -113,6 +113,8 @@ public:
inline RegClass *getRegClassByID(unsigned id) { return RegClassList[id]; }
private:
+ SavedStateMapTy FnAllocState;
+
void addInterference(const Value *Def, const ValueSet *LVSet,
bool isCallInst);
bool markAllocatedRegs(MachineInstr* MInst);