diff options
| author | Craig Topper <craig.topper@gmail.com> | 2012-03-04 03:33:22 +0000 |
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2012-03-04 03:33:22 +0000 |
| commit | 420525ce3b93e43c5438c7d6f958084fcb6a02cc (patch) | |
| tree | b592d2156bea63aca7c3ec4bbe7bb4d936261e11 /llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp | |
| parent | 6dedbae4297dc810263b7505845b94f0e59245c6 (diff) | |
| download | bcm5719-llvm-420525ce3b93e43c5438c7d6f958084fcb6a02cc.tar.gz bcm5719-llvm-420525ce3b93e43c5438c7d6f958084fcb6a02cc.zip | |
Use uint16_t to store registers in callee saved register tables to reduce size of static data.
llvm-svn: 151996
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp')
| -rw-r--r-- | llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp b/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp index e16b4615769..306cc1fa1f0 100644 --- a/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp +++ b/llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp @@ -98,10 +98,10 @@ PPCRegisterInfo::getPointerRegClass(unsigned Kind) const { return &PPC::GPRCRegClass; } -const unsigned* +const uint16_t* PPCRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { // 32-bit Darwin calling convention. - static const unsigned Darwin32_CalleeSavedRegs[] = { + static const uint16_t Darwin32_CalleeSavedRegs[] = { PPC::R13, PPC::R14, PPC::R15, PPC::R16, PPC::R17, PPC::R18, PPC::R19, PPC::R20, PPC::R21, PPC::R22, PPC::R23, @@ -123,7 +123,7 @@ PPCRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { }; // 32-bit SVR4 calling convention. - static const unsigned SVR4_CalleeSavedRegs[] = { + static const uint16_t SVR4_CalleeSavedRegs[] = { PPC::R14, PPC::R15, PPC::R16, PPC::R17, PPC::R18, PPC::R19, PPC::R20, PPC::R21, PPC::R22, PPC::R23, @@ -147,7 +147,7 @@ PPCRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { 0 }; // 64-bit Darwin calling convention. - static const unsigned Darwin64_CalleeSavedRegs[] = { + static const uint16_t Darwin64_CalleeSavedRegs[] = { PPC::X14, PPC::X15, PPC::X16, PPC::X17, PPC::X18, PPC::X19, PPC::X20, PPC::X21, PPC::X22, PPC::X23, @@ -169,7 +169,7 @@ PPCRegisterInfo::getCalleeSavedRegs(const MachineFunction *MF) const { }; // 64-bit SVR4 calling convention. - static const unsigned SVR4_64_CalleeSavedRegs[] = { + static const uint16_t SVR4_64_CalleeSavedRegs[] = { PPC::X14, PPC::X15, PPC::X16, PPC::X17, PPC::X18, PPC::X19, PPC::X20, PPC::X21, PPC::X22, PPC::X23, |

