diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-03-05 05:37:41 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-03-05 05:37:41 +0000 |
commit | 9ebfbf8b9fd5f982e0db9293808bd32168615ba9 (patch) | |
tree | 77ce098c0d4851df8117d3d0e669b8580911a98f /include/llvm/Target/TargetRegisterInfo.h | |
parent | ec93b6decad4b95fd8a9531dc024b2b1881019bf (diff) | |
download | llvm-9ebfbf8b9fd5f982e0db9293808bd32168615ba9.tar.gz llvm-9ebfbf8b9fd5f982e0db9293808bd32168615ba9.tar.bz2 llvm-9ebfbf8b9fd5f982e0db9293808bd32168615ba9.tar.xz |
Convert more GenRegisterInfo tables from unsigned to uint16_t to reduce static data size.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152016 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetRegisterInfo.h')
-rw-r--r-- | include/llvm/Target/TargetRegisterInfo.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Target/TargetRegisterInfo.h b/include/llvm/Target/TargetRegisterInfo.h index 44566edc54..0cef3501fa 100644 --- a/include/llvm/Target/TargetRegisterInfo.h +++ b/include/llvm/Target/TargetRegisterInfo.h @@ -159,7 +159,7 @@ public: /// getSubClassMask - Returns a bit vector of subclasses, including this one. /// The vector is indexed by class IDs, see hasSubClassEq() above for how to /// use it. - const unsigned *getSubClassMask() const { + const uint32_t *getSubClassMask() const { return SubClassMask; } @@ -340,7 +340,7 @@ public: /// isSuperRegister - Returns true if regB is a super-register of regA. /// bool isSuperRegister(unsigned regA, unsigned regB) const { - for (const unsigned *regList = getSuperRegisters(regA); *regList;++regList){ + for (const uint16_t *regList = getSuperRegisters(regA); *regList;++regList){ if (*regList == regB) return true; } return false; @@ -387,7 +387,7 @@ public: /// Reg so its sub-register of index SubIdx is Reg. unsigned getMatchingSuperReg(unsigned Reg, unsigned SubIdx, const TargetRegisterClass *RC) const { - for (const unsigned *SRs = getSuperRegisters(Reg); unsigned SR = *SRs;++SRs) + for (const uint16_t *SRs = getSuperRegisters(Reg); unsigned SR = *SRs;++SRs) if (Reg == getSubReg(SR, SubIdx) && RC->contains(SR)) return SR; return 0; |