#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;
class FunctionLiveVarInfo;
class MachineInstr;
class LoopInfo;
+class RegClass;
//----------------------------------------------------------------------------
// Class 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
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:
#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;
class FunctionLiveVarInfo;
class MachineInstr;
class LoopInfo;
+class RegClass;
//----------------------------------------------------------------------------
// Class 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
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: