9 #ifndef LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZCALLINGCONV_H 10 #define LLVM_LIB_TARGET_SYSTEMZ_SYSTEMZCALLINGCONV_H 35 bool IsShortVectorType(
EVT ArgVT) {
42 :
CCState(CC, isVarArg, MF, locs, C) {}
48 for (
unsigned i = 0; i < Ins.
size(); ++i)
51 ArgIsShortVector.
clear();
52 for (
unsigned i = 0; i < Ins.
size(); ++i)
53 ArgIsShortVector.
push_back(IsShortVectorType(Ins[i].ArgVT));
62 for (
unsigned i = 0; i < Outs.
size(); ++i)
65 ArgIsShortVector.
clear();
66 for (
unsigned i = 0; i < Outs.
size(); ++i)
67 ArgIsShortVector.
push_back(IsShortVectorType(Outs[i].ArgVT));
78 bool IsFixed(
unsigned ValNo) {
return ArgIsFixed[ValNo]; }
114 for (
auto &It : PendingMembers) {
116 It.convertToReg(Reg);
118 It.convertToMem(Offset);
122 PendingMembers.clear();
bool CC_SystemZ_I128Indirect(unsigned &ValNo, MVT &ValVT, MVT &LocVT, CCValAssign::LocInfo &LocInfo, ISD::ArgFlagsTy &ArgFlags, CCState &State)
static CCValAssign getPending(unsigned ValNo, MVT ValVT, MVT LocVT, LocInfo HTP, unsigned ExtraInfo=0)
LLVM_ATTRIBUTE_NORETURN void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.
This class represents lattice values for constants.
void AnalyzeFormalArguments(const SmallVectorImpl< ISD::InputArg > &Ins, CCAssignFn Fn)
const MCPhysReg ArgFPRs[NumArgFPRs]
void push_back(const T &Elt)
void AnalyzeFormalArguments(const SmallVectorImpl< ISD::InputArg > &Ins, CCAssignFn Fn)
AnalyzeFormalArguments - Analyze an array of argument values, incorporating info about the formals in...
bool CCAssignFn(unsigned ValNo, MVT ValVT, MVT LocVT, CCValAssign::LocInfo LocInfo, ISD::ArgFlagsTy ArgFlags, CCState &State)
CCAssignFn - This function assigns a location for Val, updating State to reflect the change...
const unsigned NumArgGPRs
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
void addLoc(const CCValAssign &V)
SmallVectorImpl< CCValAssign > & getPendingLocs()
const unsigned NumArgFPRs
This is an important class for using LLVM in a threaded context.
void AnalyzeCallOperands(const SmallVectorImpl< ISD::OutputArg > &Outs, CCAssignFn Fn)
TypeSize getStoreSize() const
Return the number of bytes overwritten by a store of the specified value type.
bool IsShortVector(unsigned ValNo)
CCState - This class holds information needed while lowering arguments and return values...
bool IsFixed(unsigned ValNo)
SystemZCCState(CallingConv::ID CC, bool isVarArg, MachineFunction &MF, SmallVectorImpl< CCValAssign > &locs, LLVMContext &C)
void AnalyzeCallOperands(const SmallVectorImpl< ISD::OutputArg > &Outs, CCAssignFn Fn)
AnalyzeCallOperands - Analyze the outgoing arguments to a call, incorporating info about the passed v...
bool isVector() const
Return true if this is a vector value type.
unsigned AllocateStack(unsigned Size, unsigned Alignment)
AllocateStack - Allocate a chunk of stack space with the specified size and alignment.
LLVM_NODISCARD bool empty() const
const MCPhysReg ArgGPRs[NumArgGPRs]
bool CC_SystemZ_GHC_Error(unsigned &, MVT &, MVT &, CCValAssign::LocInfo &, ISD::ArgFlagsTy &, CCState &)
unsigned AllocateReg(unsigned Reg)
AllocateReg - Attempt to allocate one register.