1*0b57cec5SDimitry Andric //===-- SystemZCallingConv.cpp - Calling conventions for SystemZ ----------===//
2*0b57cec5SDimitry Andric //
3*0b57cec5SDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4*0b57cec5SDimitry Andric // See https://llvm.org/LICENSE.txt for license information.
5*0b57cec5SDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6*0b57cec5SDimitry Andric //
7*0b57cec5SDimitry Andric //===----------------------------------------------------------------------===//
8*0b57cec5SDimitry Andric 
9*0b57cec5SDimitry Andric #include "SystemZCallingConv.h"
10*0b57cec5SDimitry Andric #include "SystemZRegisterInfo.h"
11*0b57cec5SDimitry Andric 
12*0b57cec5SDimitry Andric using namespace llvm;
13*0b57cec5SDimitry Andric 
14*0b57cec5SDimitry Andric const MCPhysReg SystemZ::ELFArgGPRs[SystemZ::ELFNumArgGPRs] = {
15*0b57cec5SDimitry Andric   SystemZ::R2D, SystemZ::R3D, SystemZ::R4D, SystemZ::R5D, SystemZ::R6D
16*0b57cec5SDimitry Andric };
17*0b57cec5SDimitry Andric 
18*0b57cec5SDimitry Andric const MCPhysReg SystemZ::ELFArgFPRs[SystemZ::ELFNumArgFPRs] = {
19*0b57cec5SDimitry Andric   SystemZ::F0D, SystemZ::F2D, SystemZ::F4D, SystemZ::F6D
20*0b57cec5SDimitry Andric };
21 
22 // The XPLINK64 ABI-defined param passing general purpose registers
23 const MCPhysReg SystemZ::XPLINK64ArgGPRs[SystemZ::XPLINK64NumArgGPRs] = {
24     SystemZ::R1D, SystemZ::R2D, SystemZ::R3D
25 };
26 
27 // The XPLINK64 ABI-defined param passing floating point registers
28 const MCPhysReg SystemZ::XPLINK64ArgFPRs[SystemZ::XPLINK64NumArgFPRs] = {
29     SystemZ::F0D, SystemZ::F2D, SystemZ::F4D, SystemZ::F6D
30 };
31