diff options
| author | Brian Gaeke <gaeke@uiuc.edu> | 2003-09-24 18:08:54 +0000 |
|---|---|---|
| committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-09-24 18:08:54 +0000 |
| commit | 6a256cc37cc4b1b6b7e19be8eede976fc75c15ca (patch) | |
| tree | 967ccc3dd3640278813c65e399ee403e44a5b4ef /lib/CodeGen/RegAlloc/PhyRegAlloc.h | |
| parent | 59b1c566c9abd02745a3f73f1dbceb8d65a1ac77 (diff) | |
| download | external_llvm-6a256cc37cc4b1b6b7e19be8eede976fc75c15ca.zip external_llvm-6a256cc37cc4b1b6b7e19be8eede976fc75c15ca.tar.gz external_llvm-6a256cc37cc4b1b6b7e19be8eede976fc75c15ca.tar.bz2 | |
Untabify tabs in stuff I've recently added.
Check in my register allocator state-saving code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8698 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/RegAlloc/PhyRegAlloc.h')
| -rw-r--r-- | lib/CodeGen/RegAlloc/PhyRegAlloc.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h index 438f2c5..6dcfa1f 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.h +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.h @@ -29,6 +29,7 @@ class FunctionLiveVarInfo; class MachineInstr; class LoopInfo; class RegClass; +class Constant; //---------------------------------------------------------------------------- // Class AddedInstrns: @@ -77,6 +78,8 @@ class PhyRegAlloc : public FunctionPass { AddedInstrns AddedInstrAtEntry; // to store instrns added at entry const LoopInfo *LoopDepthCalc; // to calculate loop depths + std::map<const Function *, Constant *> FnAllocState; + PhyRegAlloc(const PhyRegAlloc&); // DO NOT IMPLEMENT void operator=(const PhyRegAlloc&); // DO NOT IMPLEMENT public: @@ -89,6 +92,8 @@ public: /// virtual bool runOnFunction (Function &F); + virtual bool doFinalization (Module &M); + virtual void getAnalysisUsage (AnalysisUsage &AU) const; const char *getPassName () const { @@ -108,6 +113,7 @@ private: void addInterferencesForArgs(); void createIGNodeListsAndIGs(); void buildInterferenceGraphs(); + void saveState(); void setCallInterferences(const MachineInstr *MI, const ValueSet *LVSetAft); |
