diff options
author | Chris Lattner <sabre@nondot.org> | 2003-01-15 19:56:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-01-15 19:56:21 +0000 |
commit | abb9c08a0585dfb1b61f3b87be4962178b5a55fa (patch) | |
tree | 422f84bb0e9e5facf0c30f148b6c805195af437b | |
parent | 0e1043332570047aa649fd95c9db3f7bcb70b351 (diff) |
Remvoe dependency on RegClass.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5306 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/RegAlloc/PhyRegAlloc.h | 7 | ||||
-rw-r--r-- | lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.h b/lib/CodeGen/RegAlloc/PhyRegAlloc.h index ea4f562009..c55f8e0009 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.h +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.h @@ -19,8 +19,8 @@ #ifndef PHY_REG_ALLOC_H #define PHY_REG_ALLOC_H -#include "llvm/CodeGen/RegClass.h" #include "llvm/CodeGen/LiveRangeInfo.h" +#include "Support/NonCopyable.h" #include <map> class MachineFunction; @@ -28,6 +28,7 @@ class TargetRegInfo; class FunctionLiveVarInfo; class MachineInstr; class LoopInfo; +class RegClass; //---------------------------------------------------------------------------- // Class AddedInstrns: @@ -49,7 +50,7 @@ struct AddedInstrns { // registers for a Function. //---------------------------------------------------------------------------- -class PhyRegAlloc: public NonCopyable { +class PhyRegAlloc : public NonCopyable { std::vector<RegClass *> RegClassList; // vector of register classes const TargetMachine &TM; // target machine const Function *Fn; // name of the function we work on @@ -66,7 +67,7 @@ class PhyRegAlloc: public NonCopyable { AddedInstrns AddedInstrAtEntry; // to store instrns added at entry LoopInfo *LoopDepthCalc; // to calculate loop depths - ReservedColorListType ResColList; // A set of reserved regs if desired. + std::vector<unsigned> ResColList; // A set of reserved regs if desired. // currently not used public: diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h index ea4f562009..c55f8e0009 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.h @@ -19,8 +19,8 @@ #ifndef PHY_REG_ALLOC_H #define PHY_REG_ALLOC_H -#include "llvm/CodeGen/RegClass.h" #include "llvm/CodeGen/LiveRangeInfo.h" +#include "Support/NonCopyable.h" #include <map> class MachineFunction; @@ -28,6 +28,7 @@ class TargetRegInfo; class FunctionLiveVarInfo; class MachineInstr; class LoopInfo; +class RegClass; //---------------------------------------------------------------------------- // Class AddedInstrns: @@ -49,7 +50,7 @@ struct AddedInstrns { // registers for a Function. //---------------------------------------------------------------------------- -class PhyRegAlloc: public NonCopyable { +class PhyRegAlloc : public NonCopyable { std::vector<RegClass *> RegClassList; // vector of register classes const TargetMachine &TM; // target machine const Function *Fn; // name of the function we work on @@ -66,7 +67,7 @@ class PhyRegAlloc: public NonCopyable { AddedInstrns AddedInstrAtEntry; // to store instrns added at entry LoopInfo *LoopDepthCalc; // to calculate loop depths - ReservedColorListType ResColList; // A set of reserved regs if desired. + std::vector<unsigned> ResColList; // A set of reserved regs if desired. // currently not used public: |