[llvm-commits] CVS: llvm/lib/Target/Sparc/SparcInternals.h

Misha Brukman brukman at cs.uiuc.edu
Fri May 30 15:13:09 PDT 2003


Changes in directory llvm/lib/Target/Sparc:

SparcInternals.h updated: 1.87 -> 1.88

---
Log message:

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.


---
Diffs of the changes:

Index: llvm/lib/Target/Sparc/SparcInternals.h
diff -u llvm/lib/Target/Sparc/SparcInternals.h:1.87 llvm/lib/Target/Sparc/SparcInternals.h:1.88
--- llvm/lib/Target/Sparc/SparcInternals.h:1.87	Tue May 27 17:44:44 2003
+++ llvm/lib/Target/Sparc/SparcInternals.h	Fri May 30 15:12:42 2003
@@ -259,20 +259,6 @@
     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 @@
                      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





More information about the llvm-commits mailing list