mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-07 12:28:24 +00:00
The register types need to be visible outside of the class to be useful.
For one, converting register numbers based on class in the code emitter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6447 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -259,20 +259,6 @@ class UltraSparcRegInfo : public TargetRegInfo {
|
|||||||
SpecialRegClassID // Special (unallocated) registers
|
SpecialRegClassID // Special (unallocated) registers
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
// Type of registers available in Sparc. There can be several reg types
|
|
||||||
// in the same class. For instace, the float reg class has Single/Double
|
|
||||||
// types
|
|
||||||
//
|
|
||||||
enum RegTypes {
|
|
||||||
IntRegType,
|
|
||||||
FPSingleRegType,
|
|
||||||
FPDoubleRegType,
|
|
||||||
IntCCRegType,
|
|
||||||
FloatCCRegType,
|
|
||||||
SpecialRegType
|
|
||||||
};
|
|
||||||
|
|
||||||
// **** WARNING: If the above enum order is changed, also modify
|
// **** WARNING: If the above enum order is changed, also modify
|
||||||
// getRegisterClassOfValue method below since it assumes this particular
|
// getRegisterClassOfValue method below since it assumes this particular
|
||||||
// order for efficiency.
|
// order for efficiency.
|
||||||
@@ -348,6 +334,19 @@ class UltraSparcRegInfo : public TargetRegInfo {
|
|||||||
unsigned& regClassId) const;
|
unsigned& regClassId) const;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
// Type of registers available in Sparc. There can be several reg types
|
||||||
|
// in the same class. For instace, the float reg class has Single/Double
|
||||||
|
// types
|
||||||
|
//
|
||||||
|
enum RegTypes {
|
||||||
|
IntRegType,
|
||||||
|
FPSingleRegType,
|
||||||
|
FPDoubleRegType,
|
||||||
|
IntCCRegType,
|
||||||
|
FloatCCRegType,
|
||||||
|
SpecialRegType
|
||||||
|
};
|
||||||
|
|
||||||
UltraSparcRegInfo(const UltraSparc &tgt);
|
UltraSparcRegInfo(const UltraSparc &tgt);
|
||||||
|
|
||||||
// To find the register class used for a specified Type
|
// To find the register class used for a specified Type
|
||||||
|
Reference in New Issue
Block a user