Lines Matching refs:Ty

26   llvm::Type* HandleAggregates(QualType Ty, uint64_t TySize) const;
37 RValue EmitVAArg(CodeGenFunction &CGF, Address VAListAddr, QualType Ty,
39 ABIArgInfo extendType(QualType Ty) const;
128 llvm::Type* MipsABIInfo::HandleAggregates(QualType Ty, uint64_t TySize) const { in HandleAggregates() argument
136 if (Ty->isComplexType()) in HandleAggregates()
137 return CGT.ConvertType(Ty); in HandleAggregates()
139 const RecordType *RT = Ty->getAs<RecordType>(); in HandleAggregates()
159 const QualType Ty = i->getType(); in HandleAggregates() local
160 const BuiltinType *BT = Ty->getAs<BuiltinType>(); in HandleAggregates()
193 MipsABIInfo::classifyArgumentType(QualType Ty, uint64_t &Offset) const { in classifyArgumentType() argument
194 Ty = useFirstFieldIfTransparentUnion(Ty); in classifyArgumentType()
197 uint64_t TySize = getContext().getTypeSize(Ty); in classifyArgumentType()
198 uint64_t Align = getContext().getTypeAlign(Ty) / 8; in classifyArgumentType()
205 if (isAggregateTypeForABI(Ty) || Ty->isVectorType()) { in classifyArgumentType()
210 if (CGCXXABI::RecordArgABI RAA = getRecordArgABI(Ty, getCXXABI())) { in classifyArgumentType()
212 return getNaturalAlignIndirect(Ty, RAA == CGCXXABI::RAA_DirectInMemory); in classifyArgumentType()
219 ABIArgInfo::getDirect(HandleAggregates(Ty, TySize), 0, in classifyArgumentType()
226 if (const EnumType *EnumTy = Ty->getAs<EnumType>()) in classifyArgumentType()
227 Ty = EnumTy->getDecl()->getIntegerType(); in classifyArgumentType()
230 if (const auto *EIT = Ty->getAs<BitIntType>()) in classifyArgumentType()
234 return getNaturalAlignIndirect(Ty); in classifyArgumentType()
237 if (Ty->isIntegralOrEnumerationType()) in classifyArgumentType()
238 return extendType(Ty); in classifyArgumentType()
351 QualType Ty = OrigTy; in EmitVAArg() local
358 if ((Ty->isIntegerType() && in EmitVAArg()
359 getContext().getIntWidth(Ty) < SlotSizeInBits) || in EmitVAArg()
360 (Ty->isPointerType() && PtrWidth < SlotSizeInBits)) { in EmitVAArg()
362 Ty = getContext().getIntTypeForBitwidth(SlotSizeInBits, in EmitVAArg()
363 Ty->isSignedIntegerType()); in EmitVAArg()
366 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
376 RValue Res = emitVoidPtrVAArg(CGF, VAListAddr, Ty, /*indirect*/ false, TyInfo, in EmitVAArg()
397 ABIArgInfo MipsABIInfo::extendType(QualType Ty) const { in extendType()
398 int TySize = getContext().getTypeSize(Ty); in extendType()
401 if (Ty->isUnsignedIntegerOrEnumerationType() && TySize == 32) in extendType()
402 return ABIArgInfo::getSignExtend(Ty); in extendType()
404 return ABIArgInfo::getExtend(Ty); in extendType()