24 AArch64::X3, AArch64::X4, AArch64::X5,
25 AArch64::X6, AArch64::X7};
27 AArch64::H3, AArch64::H4, AArch64::H5,
28 AArch64::H6, AArch64::H7};
30 AArch64::S3, AArch64::S4, AArch64::S5,
31 AArch64::S6, AArch64::S7};
33 AArch64::D3, AArch64::D4, AArch64::D5,
34 AArch64::D6, AArch64::D7};
36 AArch64::Q3, AArch64::Q4, AArch64::Q5,
37 AArch64::Q6, AArch64::Q7};
41 CCState &State,
unsigned SlotAlign) {
43 const Align StackAlign =
46 const Align Align = std::min(OrigAlign, StackAlign);
48 for (
auto &It : PendingMembers) {
50 Size,
std::max((
unsigned)Align.value(), SlotAlign)));
56 PendingMembers.clear();
118 unsigned EltsPerReg = (IsDarwinILP32 && LocVT.
SimpleTy ==
MVT::i32) ? 2 : 1;
120 RegList,
alignTo(PendingMembers.
size(), EltsPerReg) / EltsPerReg);
121 if (RegResult && EltsPerReg == 1) {
122 for (
auto &It : PendingMembers) {
123 It.convertToReg(RegResult);
127 PendingMembers.clear();
129 }
else if (RegResult) {
130 assert(EltsPerReg == 2 &&
"unexpected ABI");
131 bool UseHigh =
false;
133 for (
auto &It : PendingMembers) {
141 PendingMembers.clear();
146 for (
auto Reg : RegList)
156 #include "AArch64GenCallingConv.inc" static const MCPhysReg XRegList[]
static CCValAssign getPending(unsigned ValNo, MVT ValVT, MVT LocVT, LocInfo HTP, unsigned ExtraInfo=0)
This class represents lattice values for constants.
static const MCPhysReg HRegList[]
Align getStackAlignment() const
void push_back(const T &Elt)
TypeSize getSizeInBits() const
Returns the size of the specified MVT in bits.
MachineFunction & getMachineFunction() const
static bool CC_AArch64_Custom_Stack_Block(unsigned &ValNo, MVT &ValVT, MVT &LocVT, CCValAssign::LocInfo &LocInfo, ISD::ArgFlagsTy &ArgFlags, CCState &State)
The Darwin variadic PCS places anonymous arguments in 8-byte stack slots.
static const MCPhysReg DRegList[]
bool isTargetDarwin() const
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
void addLoc(const CCValAssign &V)
static const MCPhysReg QRegList[]
bool isTargetMachO() const
static bool finishStackBlock(SmallVectorImpl< CCValAssign > &PendingMembers, MVT LocVT, ISD::ArgFlagsTy &ArgFlags, CCState &State, unsigned SlotAlign)
bool is64BitVector() const
Return true if this is a 64-bit vector type.
SmallVectorImpl< CCValAssign > & getPendingLocs()
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory)...
Analysis containing CSE Info
const DataLayout & getDataLayout() const
Return the DataLayout attached to the Module associated to this MF.
uint16_t MCPhysReg
An unsigned integer type large enough to represent all physical registers, but not necessarily virtua...
static CCValAssign getReg(unsigned ValNo, MVT ValVT, unsigned RegNo, MVT LocVT, LocInfo HTP)
bool is128BitVector() const
Return true if this is a 128-bit vector type.
unsigned getOrigAlign() const
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
This struct is a compact representation of a valid (non-zero power of two) alignment.
CCState - This class holds information needed while lowering arguments and return values...
Align max(MaybeAlign Lhs, Align Rhs)
unsigned AllocateRegBlock(ArrayRef< MCPhysReg > Regs, unsigned RegsRequired)
AllocateRegBlock - Attempt to allocate a block of RegsRequired consecutive registers.
bool is32BitVector() const
Return true if this is a 32-bit vector type.
static const MCPhysReg SRegList[]
uint64_t alignTo(uint64_t Size, Align A)
Returns a multiple of A needed to store Size bytes.
unsigned AllocateStack(unsigned Size, unsigned Alignment)
AllocateStack - Allocate a chunk of stack space with the specified size and alignment.
bool isInConsecutiveRegsLast() const
bool isTargetILP32() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
unsigned AllocateReg(unsigned Reg)
AllocateReg - Attempt to allocate one register.
static bool CC_AArch64_Custom_Block(unsigned &ValNo, MVT &ValVT, MVT &LocVT, CCValAssign::LocInfo &LocInfo, ISD::ArgFlagsTy &ArgFlags, CCState &State)
Given an [N x Ty] block, it should be passed in a consecutive sequence of registers.