summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorRuchira Sasanka <sasanka@students.uiuc.edu>2001-09-15 00:33:26 +0000
committerRuchira Sasanka <sasanka@students.uiuc.edu>2001-09-15 00:33:26 +0000
commitf60342a231f4fb06f1b7607ef0c2661774c4f907 (patch)
treeb9b903f08c9747fc61eeea8c706b7bff2b42c5a4 /llvm/lib
parent671428c8a794546b5d08ed3ac455974236a77631 (diff)
downloadbcm5719-llvm-f60342a231f4fb06f1b7607ef0c2661774c4f907.tar.gz
bcm5719-llvm-f60342a231f4fb06f1b7607ef0c2661774c4f907.zip
--reg alloc code added
llvm-svn: 587
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h8
-rw-r--r--llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h1
-rw-r--r--llvm/lib/CodeGen/RegAlloc/RegClass.h1
3 files changed, 9 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h b/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h
index 9d386c1d985..da5601790a0 100644
--- a/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h
+++ b/llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h
@@ -54,6 +54,10 @@ private:
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 @@ private:
public:
- LiveRangeInfo(const Method *const M);
+ LiveRangeInfo(const Method *const M,
+ const TargetMachine& tm,
+ vector<RegClass *> & RCList);
void constructLiveRanges();
diff --git a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
index f21581dd6e0..eacb6480aed 100644
--- a/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
+++ b/llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
@@ -70,6 +70,7 @@ class PhyRegAlloc
AddedInstrMapType AddedInstrMap; // to store instrns added in this phase
+
//------- private methods ---------------------------------------------------
void addInterference(const Value *const Def, const LiveVarSet *const LVSet,
diff --git a/llvm/lib/CodeGen/RegAlloc/RegClass.h b/llvm/lib/CodeGen/RegAlloc/RegClass.h
index a8fc0ae1bc2..723443da9ad 100644
--- a/llvm/lib/CodeGen/RegAlloc/RegClass.h
+++ b/llvm/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;
OpenPOWER on IntegriCloud