mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Add function getRegClassIDOfType.
getRegClassIDOfValue is now just a wrapper around this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1897 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7482532129
commit
80347ecb14
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
class TargetMachine;
|
class TargetMachine;
|
||||||
class IGNode;
|
class IGNode;
|
||||||
|
class Type;
|
||||||
class Value;
|
class Value;
|
||||||
class LiveRangeInfo;
|
class LiveRangeInfo;
|
||||||
class Method;
|
class Method;
|
||||||
@ -84,9 +85,11 @@ public:
|
|||||||
// condition code register. If isCCReg is true below, the ID of the condition
|
// condition code register. If isCCReg is true below, the ID of the condition
|
||||||
// code regiter class will be returned. Otherwise, the normal register
|
// code regiter class will be returned. Otherwise, the normal register
|
||||||
// class (eg. int, float) must be returned.
|
// class (eg. int, float) must be returned.
|
||||||
|
virtual unsigned getRegClassIDOfType (const Type *type,
|
||||||
|
bool isCCReg = false) const =0;
|
||||||
virtual unsigned getRegClassIDOfValue (const Value *Val,
|
virtual unsigned getRegClassIDOfValue (const Value *Val,
|
||||||
bool isCCReg = false) const =0;
|
bool isCCReg = false) const =0;
|
||||||
|
|
||||||
|
|
||||||
inline unsigned int getNumOfRegClasses() const {
|
inline unsigned int getNumOfRegClasses() const {
|
||||||
return MachineRegClassArr.size();
|
return MachineRegClassArr.size();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user