1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Simplify the interface

llvm-svn: 5313
This commit is contained in:
Chris Lattner 2003-01-15 21:13:32 +00:00
parent 7f6d496ab0
commit eac243c414

View File

@ -76,8 +76,6 @@ public:
// class (eg. int, float) must be returned.
virtual unsigned getRegClassIDOfType (const Type *type,
bool isCCReg = false) const =0;
virtual unsigned getRegClassIDOfValue (const Value *Val,
bool isCCReg = false) const =0;
virtual unsigned getRegClassIDOfReg (int unifiedRegNum) const =0;
virtual unsigned getRegClassIDOfRegType(int regType) const =0;
@ -179,14 +177,8 @@ public:
// Returns the assembly-language name of the specified machine register.
virtual const char * const getUnifiedRegName(int UnifiedRegNum) const = 0;
// The following 4 methods are used to find the RegType (a target-specific
// enum) 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.
//
virtual int getRegType(unsigned regClassID, const Type* type) const = 0;
virtual int getRegType(const Type* type) const = 0;
virtual int getRegType(const LiveRange *LR) const = 0;
virtual int getRegType(const Value *Val) const = 0;
virtual int getRegType(int unifiedRegNum) const = 0;
// The following methods are used to get the frame/stack pointers