Use uint16_t instead of unsigned to store registers in reg classes. Reduces static data size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@151998 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Craig Topper
2012-03-04 10:16:38 +00:00
parent 015f228861
commit b6632ba380
9 changed files with 39 additions and 39 deletions

View File

@@ -25,8 +25,8 @@ namespace llvm {
/// MCRegisterClass - Base class of TargetRegisterClass.
class MCRegisterClass {
public:
typedef const unsigned* iterator;
typedef const unsigned* const_iterator;
typedef const uint16_t* iterator;
typedef const uint16_t* const_iterator;
const unsigned ID;
const char *Name;
@@ -34,7 +34,7 @@ public:
const int CopyCost;
const bool Allocatable;
const iterator RegsBegin;
const unsigned char *const RegSet;
const uint8_t *const RegSet;
const unsigned RegsSize;
const unsigned RegSetSize;
@@ -136,7 +136,7 @@ private:
const unsigned *Overlaps; // Pointer to the overlaps array
const unsigned *SubRegs; // Pointer to the subregs array
const unsigned *SuperRegs; // Pointer to the superregs array
const unsigned short *SubRegIndices; // Pointer to the subreg lookup
const uint16_t *SubRegIndices; // Pointer to the subreg lookup
// array.
unsigned NumSubRegIndices; // Number of subreg indices.
DenseMap<unsigned, int> L2DwarfRegs; // LLVM to Dwarf regs mapping
@@ -152,7 +152,7 @@ public:
const MCRegisterClass *C, unsigned NC,
const unsigned *O, const unsigned *Sub,
const unsigned *Super,
const unsigned short *SubIndices,
const uint16_t *SubIndices,
unsigned NumIndices) {
Desc = D;
NumRegs = NR;