diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2003-07-06 19:53:59 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2003-07-06 19:53:59 +0000 |
commit | 46d3f8e34c946c31cd2a8f046268c46294e54a94 (patch) | |
tree | ff1d1cf682ba93cabce8ff3ab9630f021a21b621 /lib | |
parent | 3fb290e41f2eafdfed43613691232943112618fb (diff) | |
download | external_llvm-46d3f8e34c946c31cd2a8f046268c46294e54a94.zip external_llvm-46d3f8e34c946c31cd2a8f046268c46294e54a94.tar.gz external_llvm-46d3f8e34c946c31cd2a8f046268c46294e54a94.tar.bz2 |
Make the RegClassID values public -- there is no other way to get them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7109 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/SparcV9/SparcV9Internals.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Target/SparcV9/SparcV9Internals.h b/lib/Target/SparcV9/SparcV9Internals.h index 5c14ae6..8fcf7db 100644 --- a/lib/Target/SparcV9/SparcV9Internals.h +++ b/lib/Target/SparcV9/SparcV9Internals.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) // |