--reg alloc code added
llvm-svn: 587
diff --git a/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h b/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h
index 9d386c1..da56017 100644
--- a/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h
+++ b/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h
@@ -54,6 +54,10 @@
LiveRangeMapType LiveRangeMap; // A map from Value * to LiveRange *
// created by constructLiveRanges
+ const TargetMachine& TM; // target machine description
+ vector<RegClass *> & RegClassList;// a vector containing register classess
+
+
void unionAndUpdateLRs(LiveRange *L1, LiveRange *L2);
void addInterference(const Instruction *const Inst,
@@ -62,7 +66,9 @@
public:
- LiveRangeInfo(const Method *const M);
+ LiveRangeInfo(const Method *const M,
+ const TargetMachine& tm,
+ vector<RegClass *> & RCList);
void constructLiveRanges();