aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2003-05-30 20:12:42 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2003-05-30 20:12:42 +0000
commitd3d97be4d1c95414a941e2fa1ae19c4cf6bcfd0e (patch)
tree3ffc620c060875463b3e6fef07c5a1813811916d /lib
parent7b647942ef80aa7b522faf8c9677a1044ecd2cc2 (diff)
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/SparcV9/SparcV9Internals.h27
1 files changed, 13 insertions, 14 deletions
diff --git a/lib/Target/SparcV9/SparcV9Internals.h b/lib/Target/SparcV9/SparcV9Internals.h
index c8958d2697..3e49efd527 100644
--- a/lib/Target/SparcV9/SparcV9Internals.h
+++ b/lib/Target/SparcV9/SparcV9Internals.h
@@ -259,20 +259,6 @@ class UltraSparcRegInfo : public TargetRegInfo {
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
// getRegisterClassOfValue method below since it assumes this particular
// order for efficiency.
@@ -348,6 +334,19 @@ class UltraSparcRegInfo : public TargetRegInfo {
unsigned& regClassId) const;
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);
// To find the register class used for a specified Type