Skip to content
Snippets Groups Projects
Commit 9011903e authored by Vikram S. Adve's avatar Vikram S. Adve
Browse files

Added a couple of helper methods for live range construction.

llvm-svn: 3970
parent ed2df3ec
No related branches found
No related tags found
No related merge requests found
......@@ -58,13 +58,21 @@ class LiveRangeInfo {
//------------ Private methods (see LiveRangeInfo.cpp for description)-------
void unionAndUpdateLRs(LiveRange *L1, LiveRange *L2);
LiveRange* createNewLiveRange (const Value* Def,
bool isCC = false);
void addInterference(const Instruction *Inst, const ValueSet *LVSet);
LiveRange* createOrAddToLiveRange (const Value* Def,
bool isCC = false);
void unionAndUpdateLRs (LiveRange *L1,
LiveRange *L2);
void addInterference (const Instruction *Inst,
const ValueSet *LVSet);
void suggestRegs4CallRets();
void suggestRegs4CallRets ();
const Function *getMethod() { return Meth; }
const Function *getMethod () const { return Meth; }
public:
......@@ -79,15 +87,6 @@ public:
// Main entry point for live range construction
//
void constructLiveRanges();
// This method is used to add a live range created elsewhere (e.g.,
// in machine specific code) to the common live range map
//
inline void addLRToMap(const Value *Val, LiveRange *LR) {
assert(Val && LR && "Val/LR is NULL!\n");
assert((!LiveRangeMap[Val]) && "LR already set in map");
LiveRangeMap[Val] = LR;
}
// return the common live range map for this method
//
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment