Make the RegClassID values public -- there is no other way to get them.
authorVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 6 Jul 2003 19:53:59 +0000 (19:53 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 6 Jul 2003 19:53:59 +0000 (19:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7109 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SparcV9/SparcV9Internals.h

index 5c14ae6118cd2e4f4ed5a2d97da63f541b745b14..8fcf7dba0bcf3ef13ce09d884c301c4601c6f701 100644 (file)
@@ -249,8 +249,13 @@ struct UltraSparcInstrInfo : public TargetInstrInfo {
 //----------------------------------------------------------------------------
 
 class UltraSparcRegInfo : public TargetRegInfo {
+public:
   // The actual register classes in the Sparc
   //
+  // **** WARNING: If this enum order is changed, also modify 
+  // getRegisterClassOfValue method below since it assumes this particular 
+  // order for efficiency.
+  // 
   enum RegClassIDs { 
     IntRegClassID,                      // Integer
     FloatRegClassID,                    // Float (both single/double)
@@ -259,10 +264,7 @@ class UltraSparcRegInfo : public TargetRegInfo {
     SpecialRegClassID                   // Special (unallocated) registers
   };
 
-  // **** WARNING: If the above enum order is changed, also modify 
-  // getRegisterClassOfValue method below since it assumes this particular 
-  // order for efficiency.
-
+private:
 
   // Number of registers used for passing int args (usually 6: %o0 - %o5)
   //