class Value;
class LiveRangeInfo;
class Function;
-class LiveRange;
+class V9LiveRange;
class AddedInstrns;
class MachineInstr;
class BasicBlock;
const unsigned NumOfAllRegs; // # of all registers -including SP,g0 etc.
public:
+ virtual ~TargetRegClassInfo() {}
+
inline unsigned getRegClassID() const { return RegClassID; }
inline unsigned getNumOfAvailRegs() const { return NumOfAvailRegs; }
inline unsigned getNumOfAllRegs() const { return NumOfAllRegs; }
// To find the register class used for a specified Type
//
unsigned getRegClassIDOfType (const Type *type,
- bool isCCReg = false) const;
+ bool isCCReg = false) const;
// To find the register class to which a specified register belongs
//
LiveRangeInfo& LRI) const;
void suggestReg4RetValue(MachineInstr *RetI,
- LiveRangeInfo& LRI) const;
+ LiveRangeInfo& LRI) const;
void colorMethodArgs(const Function *Func,
LiveRangeInfo &LRI,
// as required. See SparcV9RegInfo.cpp for the implementation.
//
void suggestReg4RetAddr(MachineInstr *RetMI,
- LiveRangeInfo &LRI) const;
+ LiveRangeInfo &LRI) const;
void suggestReg4CallAddr(MachineInstr *CallMI, LiveRangeInfo &LRI) const;
// method used for printing a register for debugging purposes
//
- void printReg(const LiveRange *LR) const;
+ void printReg(const V9LiveRange *LR) const;
// To obtain the return value and the indirect call address (if any)
// contained in a CALL machine instruction
// The reg class of a LR depends both on the Value types in it and whether
// they are CC registers or not (for example).
int getRegTypeForDataType(const Type* type) const;
- int getRegTypeForLR(const LiveRange *LR) const;
+ int getRegTypeForLR(const V9LiveRange *LR) const;
int getRegType(int unifiedRegNum) const;
unsigned getFramePointer() const;