Lines Matching refs:Ty
27 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty,
30 void updateState(const ABIArgInfo &Info, QualType Ty, CCState &State) const { in updateState() argument
36 unsigned sz = (getContext().getTypeSize(Ty) + 31) / 32; in updateState()
58 ABIArgInfo getIndirectByRef(QualType Ty, bool HasFreeRegs) const;
59 ABIArgInfo getIndirectByValue(QualType Ty) const;
60 ABIArgInfo classifyArgumentType(QualType Ty, uint8_t FreeRegs) const;
71 ABIArgInfo ARCABIInfo::getIndirectByRef(QualType Ty, bool HasFreeRegs) const { in getIndirectByRef() argument
72 return HasFreeRegs ? getNaturalAlignIndirectInReg(Ty) : in getIndirectByRef()
73 getNaturalAlignIndirect(Ty, false); in getIndirectByRef()
76 ABIArgInfo ARCABIInfo::getIndirectByValue(QualType Ty) const { in getIndirectByValue()
79 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectByValue()
85 QualType Ty, AggValueSlot Slot) const { in EmitVAArg() argument
86 return emitVoidPtrVAArg(CGF, VAListAddr, Ty, /*indirect*/ false, in EmitVAArg()
87 getContext().getTypeInfoInChars(Ty), in EmitVAArg()
91 ABIArgInfo ARCABIInfo::classifyArgumentType(QualType Ty, in classifyArgumentType() argument
94 const RecordType *RT = Ty->getAs<RecordType>(); in classifyArgumentType()
98 return getIndirectByRef(Ty, FreeRegs > 0); in classifyArgumentType()
101 return getIndirectByValue(Ty); in classifyArgumentType()
105 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
106 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
108 auto SizeInRegs = llvm::alignTo(getContext().getTypeSize(Ty), 32) / 32; in classifyArgumentType()
110 if (isAggregateTypeForABI(Ty)) { in classifyArgumentType()
113 return getIndirectByValue(Ty); in classifyArgumentType()
116 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
130 if (const auto *EIT = Ty->getAs<BitIntType>()) in classifyArgumentType()
132 return getIndirectByValue(Ty); in classifyArgumentType()
134 return isPromotableIntegerTypeForABI(Ty) in classifyArgumentType()
135 ? (FreeRegs >= SizeInRegs ? ABIArgInfo::getExtendInReg(Ty) in classifyArgumentType()
136 : ABIArgInfo::getExtend(Ty)) in classifyArgumentType()