summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorVikram S. Adve <vadve@cs.uiuc.edu>2003-07-06 19:53:59 +0000
committerVikram S. Adve <vadve@cs.uiuc.edu>2003-07-06 19:53:59 +0000
commitc4499d6cb14c3f76c9415ce836f0df018aeb1b87 (patch)
tree091f1c77d7a9409b3e63ca44eae082941fa840ab /llvm/lib/Target
parentd5676e86073eb2f02b3abbfaab4d4b372962a849 (diff)
downloadbcm5719-llvm-c4499d6cb14c3f76c9415ce836f0df018aeb1b87.tar.gz
bcm5719-llvm-c4499d6cb14c3f76c9415ce836f0df018aeb1b87.zip
Make the RegClassID values public -- there is no other way to get them.
llvm-svn: 7109
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/Sparc/SparcInternals.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/lib/Target/Sparc/SparcInternals.h b/llvm/lib/Target/Sparc/SparcInternals.h
index 5c14ae6118c..8fcf7dba0bc 100644
--- a/llvm/lib/Target/Sparc/SparcInternals.h
+++ b/llvm/lib/Target/Sparc/SparcInternals.h
@@ -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)
//
OpenPOWER on IntegriCloud