mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
Convert more static tables of registers used by calling convention to uint16_t to reduce space.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152538 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1927,17 +1927,17 @@ X86TargetLowering::LowerFormalArguments(SDValue Chain,
|
||||
unsigned TotalNumIntRegs = 0, TotalNumXMMRegs = 0;
|
||||
|
||||
// FIXME: We should really autogenerate these arrays
|
||||
static const unsigned GPR64ArgRegsWin64[] = {
|
||||
static const uint16_t GPR64ArgRegsWin64[] = {
|
||||
X86::RCX, X86::RDX, X86::R8, X86::R9
|
||||
};
|
||||
static const unsigned GPR64ArgRegs64Bit[] = {
|
||||
static const uint16_t GPR64ArgRegs64Bit[] = {
|
||||
X86::RDI, X86::RSI, X86::RDX, X86::RCX, X86::R8, X86::R9
|
||||
};
|
||||
static const unsigned XMMArgRegs64Bit[] = {
|
||||
static const uint16_t XMMArgRegs64Bit[] = {
|
||||
X86::XMM0, X86::XMM1, X86::XMM2, X86::XMM3,
|
||||
X86::XMM4, X86::XMM5, X86::XMM6, X86::XMM7
|
||||
};
|
||||
const unsigned *GPR64ArgRegs;
|
||||
const uint16_t *GPR64ArgRegs;
|
||||
unsigned NumXMMRegs = 0;
|
||||
|
||||
if (IsWin64) {
|
||||
@@ -2326,7 +2326,7 @@ X86TargetLowering::LowerCall(SDValue Chain, SDValue Callee,
|
||||
// registers used and is in the range 0 - 8 inclusive.
|
||||
|
||||
// Count the number of XMM registers allocated.
|
||||
static const unsigned XMMArgRegs[] = {
|
||||
static const uint16_t XMMArgRegs[] = {
|
||||
X86::XMM0, X86::XMM1, X86::XMM2, X86::XMM3,
|
||||
X86::XMM4, X86::XMM5, X86::XMM6, X86::XMM7
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user