--reg alloc code added
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@587 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/RegAlloc/LiveRangeInfo.h b/lib/CodeGen/RegAlloc/LiveRangeInfo.h
index 9d386c1..da56017 100644
--- a/lib/CodeGen/RegAlloc/LiveRangeInfo.h
+++ b/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();
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h
index f21581d..eacb648 100644
--- a/lib/CodeGen/RegAlloc/PhyRegAlloc.h
+++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.h
@@ -70,6 +70,7 @@
AddedInstrMapType AddedInstrMap; // to store instrns added in this phase
+
//------- private methods ---------------------------------------------------
void addInterference(const Value *const Def, const LiveVarSet *const LVSet,
diff --git a/lib/CodeGen/RegAlloc/RegClass.h b/lib/CodeGen/RegAlloc/RegClass.h
index a8fc0ae..723443d 100644
--- a/lib/CodeGen/RegAlloc/RegClass.h
+++ b/lib/CodeGen/RegAlloc/RegClass.h
@@ -22,6 +22,7 @@
#include "llvm/CodeGen/IGNode.h"
#include "llvm/CodeGen/InterferenceGraph.h"
#include "llvm/Target/Machine.h"
+#include "llvm/Target/RegInfo.h"
#include <stack>
typedef vector<unsigned int> ReservedColorListType;