13 #ifndef LLVM_CODEGEN_TARGETCALLINGCONV_H 14 #define LLVM_CODEGEN_TARGETCALLINGCONV_H 35 unsigned IsReturned : 1;
37 unsigned IsInAlloca : 1;
38 unsigned IsSplitEnd : 1;
39 unsigned IsSwiftSelf : 1;
40 unsigned IsSwiftError : 1;
41 unsigned IsCFGuardTarget : 1;
43 unsigned IsHvaStart : 1;
44 unsigned IsSecArgPass : 1;
45 unsigned ByValAlign : 4;
46 unsigned OrigAlign : 5;
47 unsigned IsInConsecutiveRegsLast : 1;
48 unsigned IsInConsecutiveRegs : 1;
49 unsigned IsCopyElisionCandidate : 1;
50 unsigned IsPointer : 1;
54 unsigned PointerAddrSpace;
58 : IsZExt(0), IsSExt(0), IsInReg(0), IsSRet(0), IsByVal(0), IsNest(0),
59 IsReturned(0), IsSplit(0), IsInAlloca(0), IsSplitEnd(0),
60 IsSwiftSelf(0), IsSwiftError(0), IsCFGuardTarget(0), IsHva(0),
61 IsHvaStart(0), IsSecArgPass(0), ByValAlign(0), OrigAlign(0),
62 IsInConsecutiveRegsLast(0), IsInConsecutiveRegs(0),
63 IsCopyElisionCandidate(0), IsPointer(0), ByValSize(0),
65 static_assert(
sizeof(*
this) == 3 *
sizeof(
unsigned),
"flags are too big");
68 bool isZExt()
const {
return IsZExt; }
71 bool isSExt()
const {
return IsSExt; }
77 bool isSRet()
const {
return IsSRet; }
95 bool isHva()
const {
return IsHva; }
130 return A ? A->value() : 0;
139 return A ? A->value() : 0;
166 static const unsigned NoArgIndex = UINT_MAX;
175 unsigned origIdx,
unsigned partOffs)
176 : Flags(flags), Used(used), OrigArgIndex(origIdx), PartOffset(partOffs) {
182 return OrigArgIndex != NoArgIndex;
186 assert(OrigArgIndex != NoArgIndex &&
"Implicit machine-level argument");
201 bool IsFixed =
false;
213 unsigned origIdx,
unsigned partOffs)
214 : Flags(flags), IsFixed(isfixed), OrigArgIndex(origIdx),
215 PartOffset(partOffs) {
224 #endif // LLVM_CODEGEN_TARGETCALLINGCONV_H
This class represents lattice values for constants.
void setCopyElisionCandidate()
unsigned encode(MaybeAlign A)
Returns a representation of the alignment that encodes undefined as 0.
MVT getSimpleVT() const
Return the SimpleValueType held in the specified simple EVT.
void setInConsecutiveRegs()
MaybeAlign decodeMaybeAlign(unsigned Value)
Dual operation of the encode function above.
unsigned getPointerAddrSpace() const
void setInConsecutiveRegsLast()
bool isInConsecutiveRegs() const
void setByValSize(unsigned S)
OutputArg - This struct carries flags and a value for a single outgoing (actual) argument or outgoing...
bool isSecArgPass() const
uint64_t value() const
This is a hole in the type system and should not be abused.
unsigned getByValSize() const
unsigned getOrigAlign() const
void setByValAlign(Align A)
OutputArg(ArgFlagsTy flags, EVT vt, EVT argvt, bool isfixed, unsigned origIdx, unsigned partOffs)
This struct is a compact representation of a valid (non-zero power of two) alignment.
bool isSwiftError() const
void setOrigAlign(Align A)
This struct is a compact representation of a valid (power of two) or undefined (0) alignment...
bool isCopyElisionCandidate() const
unsigned OrigArgIndex
Index original Function's argument.
unsigned getByValAlign() const
void setPointerAddrSpace(unsigned AS)
unsigned PartOffset
Offset in bytes of current output value relative to the beginning of original argument.
bool isInConsecutiveRegsLast() const
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
bool isCFGuardTarget() const