mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Adjust to simpler interfaces
Eliminate dependency on RegClass.h git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5315 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -275,14 +275,8 @@ class UltraSparcRegInfo : public TargetRegInfo {
|
||||
std::vector<MachineInstr *>& AddedInstrnsBefore)
|
||||
const;
|
||||
|
||||
// The following 4 methods are used to find the RegType (see enum above)
|
||||
// for a reg class and a given primitive type, a LiveRange, a Value,
|
||||
// or a particular machine register.
|
||||
// The fifth function gives the reg class of the given RegType.
|
||||
//
|
||||
int getRegType(unsigned regClassID, const Type* type) const;
|
||||
int getRegType(const Type* type) const;
|
||||
int getRegType(const LiveRange *LR) const;
|
||||
int getRegType(const Value *Val) const;
|
||||
int getRegType(int unifiedRegNum) const;
|
||||
|
||||
// Used to generate a copy instruction based on the register class of
|
||||
@@ -323,13 +317,6 @@ public:
|
||||
unsigned getRegClassIDOfType(const Type *type,
|
||||
bool isCCReg = false) const;
|
||||
|
||||
// To find the register class of a Value
|
||||
//
|
||||
inline unsigned getRegClassIDOfValue(const Value *Val,
|
||||
bool isCCReg = false) const {
|
||||
return getRegClassIDOfType(Val->getType(), isCCReg);
|
||||
}
|
||||
|
||||
// To find the register class to which a specified register belongs
|
||||
//
|
||||
unsigned getRegClassIDOfReg(int unifiedRegNum) const;
|
||||
|
Reference in New Issue
Block a user