diff options
| author | Misha Brukman <brukman+llvm@gmail.com> | 2003-05-30 20:12:42 +0000 | 
|---|---|---|
| committer | Misha Brukman <brukman+llvm@gmail.com> | 2003-05-30 20:12:42 +0000 | 
| commit | 87473772928e6d619bb85f1ca8b7382a42da0951 (patch) | |
| tree | 6856820cdbd89cd170b5a06fd405f26713498eea /llvm/lib/Target/Sparc | |
| parent | a853af587ae13d95b0b1879376a813c073567705 (diff) | |
| download | bcm5719-llvm-87473772928e6d619bb85f1ca8b7382a42da0951.tar.gz bcm5719-llvm-87473772928e6d619bb85f1ca8b7382a42da0951.zip | |
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.
llvm-svn: 6447
Diffstat (limited to 'llvm/lib/Target/Sparc')
| -rw-r--r-- | llvm/lib/Target/Sparc/SparcInternals.h | 27 | 
1 files changed, 13 insertions, 14 deletions
| diff --git a/llvm/lib/Target/Sparc/SparcInternals.h b/llvm/lib/Target/Sparc/SparcInternals.h index c8958d26974..3e49efd5276 100644 --- a/llvm/lib/Target/Sparc/SparcInternals.h +++ b/llvm/lib/Target/Sparc/SparcInternals.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 | 

