Lines Matching refs:getContext

88   return ABIArgInfo::getIndirect(getContext().getTypeAlignInChars(Ty), ByVal,  in getNaturalAlignIndirect()
94 return ABIArgInfo::getIndirectInReg(getContext().getTypeAlignInChars(Ty), in getNaturalAlignIndirectInReg()
105 CGF.getContext().getBuiltinVaListType()->getPointeeType()); in getVAListElementType()
109 if (getContext().isPromotableIntegerType(Ty)) in isPromotableIntegerTypeForABI()
113 if (EIT->getNumBits() < getContext().getTypeSize(getContext().IntTy)) in isPromotableIntegerTypeForABI()
217 ASTContext &ABIInfo::getContext() const { in getContext() function in ABIInfo
218 return CGT.getContext(); in getContext()
250 return getContext().getLangOpts().CPlusPlus; in isZeroLengthBitfieldPermittedInHomogeneousAggregate()
715 auto TyInfo = CGF.getContext().getTypeInfoInChars(Ty); in EmitVAArgInstr()
790 ASTContext &Context = getContext(); in classifyArgumentType()
815 getContext().getTypeSize(getContext().getTargetInfo().hasInt128Type() in classifyReturnType()
816 ? getContext().Int128Ty in classifyReturnType()
817 : getContext().LongLongTy)) in classifyReturnType()
878 llvm::AttrBuilder B(GV->getContext()); in setTargetAttributes()
884 llvm::AttrBuilder B(GV->getContext()); in setTargetAttributes()
890 llvm::AttrBuilder B(GV->getContext()); in setTargetAttributes()
914 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
919 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyArgumentType()
947 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
952 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
967 !isEmptyRecord(getContext(), Ty, true) && in EmitVAArg()
968 !isSingleElementStruct(Ty, getContext()); in EmitVAArg()
970 getContext().getTypeInfoInChars(Ty), in EmitVAArg()
1168 return isX86VectorTypeForVectorCall(getContext(), Ty); in isHomogeneousAggregateBaseType()
1357 uint64_t RetWidth = CGF.getContext().getTypeSize(ReturnSlot.getType()); in addReturnRegisterOutputs()
1506 if (!addBaseAndFieldSizes(getContext(), CXXRD, Size)) in canExpandIndirectArgument()
1509 if (!addFieldSizes(getContext(), RD, Size)) in canExpandIndirectArgument()
1514 return Size == getContext().getTypeSize(Ty); in canExpandIndirectArgument()
1545 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
1579 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
1584 QualType ET = getContext().getCanonicalType(CT->getElementType()); in classifyReturnType()
1592 if (shouldReturnTypeInRegister(RetTy, getContext())) { in classifyReturnType()
1593 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
1600 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
1676 if (Align >= 16 && (isSIMDVectorType(getContext(), Ty) || in getTypeStackAlignInBytes()
1677 isRecordWithSIMDVectorType(getContext(), Ty))) in getTypeStackAlignInBytes()
1695 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectResult()
1708 const Type *T = isSingleElementStruct(Ty, getContext()); in classify()
1727 unsigned Size = getContext().getTypeSize(Ty); in updateFreeRegs()
1772 if (getContext().getTypeSize(Ty) <= 32 && State.FreeRegs) in shouldAggregateUseDirect()
1782 bool IsPtrOrInt = (getContext().getTypeSize(Ty) <= 32) && in shouldPrimitiveUseInReg()
1834 TypeInfo TI = getContext().getTypeInfo(Ty); in classifyArgumentType()
1876 if (!IsWin32StructABI && isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
2046 StackOffset += IsIndirect ? WordSize : getContext().getTypeSizeInChars(Type); in addFieldToArgStruct()
2127 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
2181 Fn->getContext(), ByValTy); in addX86InterruptAttrs()
2379 if (getContext().getLangOpts().getClangABICompat() <= in classifyIntegerMMXAsSSE()
2392 if (getContext().getLangOpts().getClangABICompat() <= in passInt128VectorsInMem()
2449 return isX86VectorTypeForVectorCall(getContext(), Ty); in isHomogeneousAggregateBaseType()
2630 CGM.getContext().getTypeSize(Arg.getType()) > 128) { in checkFunctionCallABI()
2631 initFeatureMaps(CGM.getContext(), CallerMap, Caller, CalleeMap, Callee); in checkFunctionCallABI()
2638 if (checkAVXParam(CGM.getDiags(), CGM.getContext(), CallLoc, CallerMap, in checkFunctionCallABI()
2648 CGM.getContext().getTypeSize(Callee->getReturnType()) > 128) { in checkFunctionCallABI()
2649 initFeatureMaps(CGM.getContext(), CallerMap, Caller, CalleeMap, Callee); in checkFunctionCallABI()
2650 checkAVXParam(CGM.getDiags(), CGM.getContext(), CallLoc, CallerMap, in checkFunctionCallABI()
2924 uint64_t Size = getContext().getTypeSize(VT); in classify()
2992 QualType ET = getContext().getCanonicalType(CT->getElementType()); in classify()
2994 uint64_t Size = getContext().getTypeSize(Ty); in classify()
3000 } else if (ET->isFloat16Type() || ET == getContext().FloatTy || in classify()
3003 } else if (ET == getContext().DoubleTy) { in classify()
3005 } else if (ET == getContext().LongDoubleTy) { in classify()
3020 uint64_t EB_Imag = (OffsetBase + getContext().getTypeSize(ET)) / 64; in classify()
3036 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in classify()
3039 uint64_t Size = getContext().getTypeSize(Ty); in classify()
3052 if (OffsetBase % getContext().getTypeAlign(AT->getElementType())) in classify()
3058 uint64_t EltSize = getContext().getTypeSize(AT->getElementType()); in classify()
3084 uint64_t Size = getContext().getTypeSize(Ty); in classify()
3103 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in classify()
3123 OffsetBase + getContext().toBits(Layout.getBaseClassOffset(Base)); in classify()
3136 bool UseClang11Compat = getContext().getLangOpts().getClangABICompat() <= in classify()
3138 getContext().getTargetInfo().getTriple().isPS(); in classify()
3160 ((!IsUnion && Size != getContext().getTypeSize(i->getType())) || in classify()
3167 if (!BitField && Offset % getContext().getTypeAlign(i->getType())) { in classify()
3187 uint64_t Size = i->getBitWidthValue(getContext()); in classify()
3232 uint64_t Size = getContext().getTypeSize(VecTy); in IsIllegalVectorType()
3271 unsigned Align = std::max(getContext().getTypeAlign(Ty) / 8, 8U); in getIndirectResult()
3295 uint64_t Size = getContext().getTypeSize(Ty); in getIndirectResult()
3312 if (const Type *InnerTy = isSingleElementStruct(Ty, getContext())) in GetByteVectorType()
3322 uint64_t Size = getContext().getTypeSize(Ty); in GetByteVectorType()
3334 uint64_t Size = getContext().getTypeSize(Ty); in GetByteVectorType()
3462 (unsigned)getContext().getTypeSize(SourceTy) / 8 - SourceOffset; in GetSSETypeAtOffset()
3541 SourceOffset*8+64, getContext())) in GetINTEGERTypeAtOffset()
3569 (unsigned)getContext().getTypeSizeInChars(SourceTy).getQuantity(); in GetINTEGERTypeAtOffset()
3608 Lo = llvm::Type::getDoubleTy(Lo->getContext()); in GetX86_64ByValArgumentPair()
3612 Lo = llvm::Type::getInt64Ty(Lo->getContext()); in GetX86_64ByValArgumentPair()
3924 if (const auto *AT = getContext().getAsConstantArrayType(MTy)) in classifyRegCallStructTypeImpl()
3927 if (getContext().getTypeSize(VT) > MaxVectorWidth) in classifyRegCallStructTypeImpl()
3928 MaxVectorWidth = getContext().getTypeSize(VT); in classifyRegCallStructTypeImpl()
3981 getContext().getCanonicalType(FI.getReturnType() in computeInfo()
3984 getContext().LongDoubleTy) in computeInfo()
4044 CharUnits Align = CGF.getContext().getTypeAlignInChars(Ty); in EmitX86_64VAArgFromMemory()
4061 uint64_t SizeInBytes = (CGF.getContext().getTypeSize(Ty) + 7) / 8; in EmitX86_64VAArgFromMemory()
4083 Ty = getContext().getCanonicalType(Ty); in EmitVAArg()
4186 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4264 uint64_t Width = getContext().getTypeSize(Ty); in EmitMSVAArg()
4268 CGF.getContext().getTypeInfoInChars(Ty), in EmitMSVAArg()
4296 TypeInfo Info = getContext().getTypeInfo(Ty); in classify()
4298 CharUnits Align = getContext().toCharUnitsFromBits(Info.Align); in classify()
4466 uint64_t Width = getContext().getTypeSize(Ty); in EmitVAArg()
4470 CGF.getContext().getTypeInfoInChars(Ty), in EmitVAArg()
4589 if (getContext().isPromotableIntegerType(Ty)) in isPromotableTypeForABI()
4643 CharUnits TyAlign = getContext().getTypeAlignInChars(Ty); in classifyArgumentType()
4662 if (isRecordWithSIMDVectorType(getContext(), Ty)) in getParamTypeAlignment()
4671 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4752 return CharUnits::fromQuantity(getContext().getTypeSize(Ty) == 128 ? 16 in getParamTypeAlignment()
4758 if (const Type *EltType = isSingleElementStruct(Ty, getContext())) { in getParamTypeAlignment()
4760 if ((EltType->isVectorType() && getContext().getTypeSize(EltType) == 128) || in getParamTypeAlignment()
4775 (Size = getContext().getTypeSize(RetTy)) <= 64) { in classifyReturnType()
4803 auto TI = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4827 bool isI64 = Ty->isIntegerType() && getContext().getTypeSize(Ty) == 64; in EmitVAArg()
4829 bool isF64 = Ty->isFloatingType() && getContext().getTypeSize(Ty) == 64; in EmitVAArg()
4912 auto TypeInfo = CGF.getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4923 CharUnits Align = CGF.getContext().getTypeAlignInChars(Ty); in EmitVAArg()
4947 getContext().getTypeAlignInChars(Ty)); in EmitVAArg()
5023 const Type *T = isSingleElementStruct(I.type, getContext()); in computeInfo()
5026 if ((T->isVectorType() && getContext().getTypeSize(T) == 128) || in computeInfo()
5115 return Ty->isRealFloatingType() && &getContext().getFloatTypeSemantics( in getParamTypeAlignment()
5122 return CharUnits::fromQuantity(getContext().getTypeSize(Ty) == 128 ? 16 : 8); in getParamTypeAlignment()
5133 const Type *EltType = isSingleElementStruct(Ty, getContext()); in getParamTypeAlignment()
5136 if ((EltType->isVectorType() && getContext().getTypeSize(EltType) == 128) || in getParamTypeAlignment()
5157 if (isAggregateTypeForABI(Ty) && getContext().getTypeAlign(Ty) >= 128) { in getParamTypeAlignment()
5169 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in isHomogeneousAggregate()
5191 if (isEmptyRecord(getContext(), I.getType(), true)) in isHomogeneousAggregate()
5206 getContext().getAsConstantArrayType(FT)) { in isHomogeneousAggregate()
5211 if (isEmptyRecord(getContext(), FT, true)) in isHomogeneousAggregate()
5215 FD->isZeroLengthBitField(getContext())) in isHomogeneousAggregate()
5230 if (getContext().getTypeSize(Base) * Members != in isHomogeneousAggregate()
5231 getContext().getTypeSize(Ty)) in isHomogeneousAggregate()
5255 getContext().getTypeSize(VT) / getContext().getTypeSize(EltTy); in isHomogeneousAggregate()
5256 Base = getContext() in isHomogeneousAggregate()
5263 getContext().getTypeSize(Base) != getContext().getTypeSize(TyPtr)) in isHomogeneousAggregate()
5277 (getContext().getTargetInfo().hasFloat128Type() && in isHomogeneousAggregateBaseType()
5285 if (getContext().getTypeSize(VT) == 128) in isHomogeneousAggregateBaseType()
5296 ((getContext().getTargetInfo().hasFloat128Type() && in isHomogeneousAggregateSmallEnough()
5299 : (getContext().getTypeSize(Base) + 63) / 64; in isHomogeneousAggregateSmallEnough()
5315 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
5333 uint64_t TyAlign = getContext().getTypeAlignInChars(Ty).getQuantity(); in classifyArgumentType()
5349 uint64_t Bits = getContext().getTypeSize(Ty); in classifyArgumentType()
5391 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
5416 uint64_t Bits = getContext().getTypeSize(RetTy); in classifyReturnType()
5442 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
5729 uint64_t Size = getContext().getTypeSize(Ty); in coerceIllegalVector()
5784 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
5785 bool IsEmpty = isEmptyRecord(getContext(), Ty, true); in classifyArgumentType()
5787 if (!getContext().getLangOpts().CPlusPlus || isDarwinPCS()) in classifyArgumentType()
5812 getContext().getTypeUnadjustedAlignInChars(Ty).getQuantity(); in classifyArgumentType()
5813 unsigned BaseAlign = getContext().getTypeAlignInChars(Base).getQuantity(); in classifyArgumentType()
5825 return coerceToIntArray(Ty, getContext(), getVMContext()); in classifyArgumentType()
5829 Alignment = getContext().getTypeUnadjustedAlign(Ty); in classifyArgumentType()
5833 std::max(getContext().getTypeAlign(Ty), in classifyArgumentType()
5861 if (RetTy->isVectorType() && getContext().getTypeSize(RetTy) > 128) in classifyReturnType()
5878 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
5879 if (isEmptyRecord(getContext(), RetTy, true) || Size == 0) in classifyReturnType()
5895 return coerceToIntArray(RetTy, getContext(), getVMContext()); in classifyReturnType()
5909 unsigned Alignment = getContext().getTypeAlign(RetTy); in classifyReturnType()
5936 uint64_t Size = getContext().getTypeSize(VT); in isIllegalVectorType()
5973 unsigned VecSize = getContext().getTypeSize(VT); in isHomogeneousAggregateBaseType()
6040 CharUnits TySize = getContext().getTypeSizeInChars(Ty); in EmitAAPCSVAArg()
6041 CharUnits TyAlign = getContext().getTypeUnadjustedAlignInChars(Ty); in EmitAAPCSVAArg()
6142 auto BaseTyInfo = getContext().getTypeInfoInChars(QualType(Base, 0)); in EmitAAPCSVAArg()
6263 if (isEmptyRecord(getContext(), Ty, true)) { in EmitDarwinVAArg()
6272 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitDarwinVAArg()
6292 if (isAggregateTypeForABI(Ty) && getContext().getTypeSize(Ty) > 128) in EmitMSVAArg()
6296 CGF.getContext().getTypeInfoInChars(Ty), in EmitMSVAArg()
6499 llvm::AttrBuilder B(Fn->getContext()); in setTargetAttributes()
6586 uint64_t Size = getContext().getTypeSize(Ty); in coerceIllegalVector()
6608 uint64_t Size = getContext().getTypeSize(VT); in classifyHomogeneousAggregate()
6620 Align = getContext().getTypeUnadjustedAlignInChars(Ty).getQuantity(); in classifyHomogeneousAggregate()
6621 unsigned BaseAlign = getContext().getTypeAlignInChars(Base).getQuantity(); in classifyHomogeneousAggregate()
6665 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
6690 getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(16)) { in classifyArgumentType()
6695 CharUnits::fromQuantity(getContext().getTypeAlign(Ty) / 8), false); in classifyArgumentType()
6706 TyAlign = getContext().getTypeUnadjustedAlignInChars(Ty).getQuantity(); in classifyArgumentType()
6709 TyAlign = getContext().getTypeAlignInChars(Ty).getQuantity(); in classifyArgumentType()
6711 if (getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(64)) { in classifyArgumentType()
6721 return coerceToIntArray(Ty, getContext(), getVMContext()); in classifyArgumentType()
6731 SizeRegs = (getContext().getTypeSize(Ty) + 31) / 32; in classifyArgumentType()
6734 SizeRegs = (getContext().getTypeSize(Ty) + 63) / 64; in classifyArgumentType()
6837 if (getContext().getTypeSize(RetTy) > 128) in classifyReturnType()
6864 if (isEmptyRecord(getContext(), RetTy, false)) in classifyReturnType()
6873 getVMContext(), getContext().getTypeSize(RetTy))); in classifyReturnType()
6876 if (isIntegerLikeType(RetTy, getContext(), getVMContext())) { in classifyReturnType()
6878 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
6892 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
6905 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
6910 return coerceToIntArray(RetTy, getContext(), getVMContext()); in classifyReturnType()
6960 uint64_t Size = getContext().getTypeSize(VT); in isIllegalVectorType()
6973 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in containsAnyFP16Vectors()
7025 unsigned VecSize = getContext().getTypeSize(VT); in isHomogeneousAggregateBaseType()
7061 if (isEmptyRecord(getContext(), Ty, true)) { in EmitVAArg()
7068 CharUnits TySize = getContext().getTypeSizeInChars(Ty); in EmitVAArg()
7069 CharUnits TyAlignForABI = getContext().getTypeUnadjustedAlignInChars(Ty); in EmitVAArg()
7193 ASTContext &Context = getContext(); in isUnsupportedType()
7229 const uint64_t Size = getContext().getTypeSize(Ty); in coerceToIntArrayWithLimit()
7230 const uint64_t Alignment = getContext().getTypeAlign(Ty); in coerceToIntArrayWithLimit()
7241 if (getContext().getLangOpts().OpenMP && in classifyReturnType()
7242 getContext().getLangOpts().OpenMPIsDevice && isUnsupportedType(RetTy)) in classifyReturnType()
7266 if (getContext().getLangOpts().CUDAIsDevice) { in classifyArgumentType()
7279 (!getContext().getTargetInfo().hasInt128Type() && in classifyArgumentType()
7351 MaxThreads = Attr->getMaxThreads()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes()
7360 MinBlocks = Attr->getMinBlocks()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes()
7372 llvm::LLVMContext &Ctx = M->getContext(); in addNVVMMetadata()
7440 Ctx(CGT.getContext()) { in SystemZTargetCodeGenInfo()
7489 auto &Ctx = M.getContext(); in testFPKind()
7556 getContext().getTypeSize(Ty) <= 128); in isVectorArgumentType()
7589 if (isEmptyRecord(getContext(), Base, true)) in GetSingleElementType()
7604 isEmptyRecord(getContext(), FD->getType(), true)) in GetSingleElementType()
7639 Ty = getContext().getCanonicalType(Ty); in EmitVAArg()
7640 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
7789 if (isCompoundType(RetTy) || getContext().getTypeSize(RetTy) > 64) in classifyReturnType()
7807 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
7810 getContext().getTypeSize(SingleElementTy) == Size) in classifyArgumentType()
8121 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in HandleAggregates()
8170 uint64_t TySize = getContext().getTypeSize(Ty); in classifyArgumentType()
8171 uint64_t Align = getContext().getTypeAlign(Ty) / 8; in classifyArgumentType()
8206 !getContext().getTargetInfo().hasInt128Type())) in classifyArgumentType()
8224 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in returnAggregateInRegs()
8260 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
8297 !getContext().getTargetInfo().hasInt128Type())) in classifyReturnType()
8332 getContext().getIntWidth(Ty) < SlotSizeInBits) || in EmitVAArg()
8335 Ty = getContext().getIntTypeForBitwidth(SlotSizeInBits, in EmitVAArg()
8339 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
8374 int TySize = getContext().getTypeSize(Ty); in extendType()
8474 getContext().getTypeSize(Ty) <= RetRegs * 8) in classifyReturnType()
8478 if (getContext().getTypeSize(Ty) > RetRegs * 8) { in classifyReturnType()
8484 if (Ty->isIntegralOrEnumerationType() && getContext().getTypeSize(Ty) <= 8) in classifyReturnType()
8491 unsigned TySize = getContext().getTypeSize(Ty); in classifyArgumentType()
8615 llvm::LLVMContext &Context = F->getContext(); in setTargetAttributes()
8734 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
8749 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
8752 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
8753 unsigned Align = getContext().getTypeAlign(Ty); in classifyArgumentType()
8774 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
8801 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
8824 uint64_t Align = CGF.getContext().getTypeAlign(Ty) / 8; in EmitVAArgFromMemory()
8855 uint64_t Offset = llvm::alignTo(CGF.getContext().getTypeSize(Ty) / 8, 4); in EmitVAArgFromMemory()
8875 uint64_t TyAlign = CGF.getContext().getTypeAlign(Ty) / 8; in EmitVAArgForHexagon()
8887 uint64_t Offset = llvm::alignTo(CGF.getContext().getTypeSize(Ty) / 8, 4); in EmitVAArgForHexagon()
8898 int ArgSize = CGF.getContext().getTypeSize(Ty) / 8; in EmitVAArgForHexagonLinux()
8908 Ty = CGF.getContext().getCanonicalType(Ty); in EmitVAArgForHexagonLinux()
8918 ArgSize = (CGF.getContext().getTypeSize(Ty) <= 32) ? 4 : 8; in EmitVAArgForHexagonLinux()
8919 int ArgAlign = (CGF.getContext().getTypeSize(Ty) <= 32) ? 4 : 8; in EmitVAArgForHexagonLinux()
9089 unsigned Size = getContext().getTypeSize(Ty); in shouldUseInReg()
9117 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectResult()
9142 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
9146 unsigned SizeInRegs = (getContext().getTypeSize(Ty) + 31) / 32; in classifyArgumentType()
9233 uint32_t NumRegs = (getContext().getTypeSize(Base) + 31) / 32; in isHomogeneousAggregateSmallEnough()
9247 unsigned EltSize = getContext().getTypeSize(EltTy); in numRegsForType()
9269 return (getContext().getTypeSize(Ty) + 31) / 32; in numRegsForType()
9299 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
9303 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
9313 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
9341 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyKernelArgumentType()
9346 if (getContext().getLangOpts().HIP) { in classifyKernelArgumentType()
9348 OrigLTy, /*FromAS=*/getContext().getTargetAddressSpace(LangAS::Default), in classifyKernelArgumentType()
9349 /*ToAS=*/getContext().getTargetAddressSpace(LangAS::cuda_device)); in classifyKernelArgumentType()
9358 if (!getContext().getLangOpts().OpenCL && LTy == OrigLTy && in classifyKernelArgumentType()
9361 getContext().getTypeAlignInChars(Ty), in classifyKernelArgumentType()
9362 getContext().getTargetAddressSpace(LangAS::opencl_constant), in classifyKernelArgumentType()
9385 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
9391 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyArgumentType()
9401 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
9497 ->EvaluateKnownConstInt(M.getContext()) in setFunctionDeclAttributes()
9500 ->EvaluateKnownConstInt(M.getContext()) in setFunctionDeclAttributes()
9527 Attr->getMin()->EvaluateKnownConstInt(M.getContext()).getExtValue(); in setFunctionDeclAttributes()
9529 ->EvaluateKnownConstInt(M.getContext()) in setFunctionDeclAttributes()
9587 if (M.getContext().getTargetInfo().allowAMDGPUUnsafeFPAtomics()) in setTargetAttributes()
9606 if (CGM.getContext().getTargetNullPointerValue(QT) == 0) in getNullPointer()
9609 auto &Ctx = CGM.getContext(); in getNullPointer()
9623 CGM.getContext().getTargetAddressSpace(LangAS::opencl_global)); in getGlobalVarAddressSpace()
9685 FT = getABIInfo().getContext().adjustFunctionType( in setCUDAKernelCallingConvention()
9904 uint64_t Size = getContext().getTypeSize(Ty); in classifyType()
9965 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
10092 unsigned sz = (getContext().getTypeSize(Ty) + 31) / 32; in updateState()
10135 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectByValue()
10143 getContext().getTypeInfoInChars(Ty), in EmitVAArg()
10164 auto SizeInRegs = llvm::alignTo(getContext().getTypeSize(Ty), 32) / 32; in classifyArgumentType()
10172 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
10202 auto RetSize = llvm::alignTo(getContext().getTypeSize(RetTy), 32) / 32; in classifyReturnType()
10344 CharUnits TypeAlign = getContext().getTypeAlignInChars(Ty); in EmitVAArg()
10498 llvm::LLVMContext &Ctx = CGM.getModule().getContext(); in emitTargetMD()
10575 if (getContext().getLangOpts().CUDAIsDevice) { in classifyKernelArgumentType()
10580 auto DefaultAS = getContext().getTargetAddressSpace(LangAS::Default); in classifyKernelArgumentType()
10581 auto GlobalAS = getContext().getTargetAddressSpace(LangAS::cuda_device); in classifyKernelArgumentType()
10635 if (getABIInfo().getContext().getLangOpts().HIP) { in setCUDAKernelCallingConvention()
10636 FT = getABIInfo().getContext().adjustFunctionType( in setCUDAKernelCallingConvention()
10661 OS << Field->getBitWidthValue(CGM.getContext()); in extractFieldType()
11035 getContext().getTypeSize(RetTy) > (2 * XLen)) { in computeInfo()
11038 IsRetIndirect = getContext().getTypeSize(EltTy) > FLen; in computeInfo()
11071 uint64_t Size = getContext().getTypeSize(Ty); in detectFPCCEligibleStructHelper()
11100 if (getContext().getTypeSize(EltTy) > FLen) in detectFPCCEligibleStructHelper()
11105 Field2Off = Field1Off + getContext().getTypeSizeInChars(EltTy); in detectFPCCEligibleStructHelper()
11109 if (const ConstantArrayType *ATy = getContext().getAsConstantArrayType(Ty)) { in detectFPCCEligibleStructHelper()
11112 CharUnits EltSize = getContext().getTypeSizeInChars(EltTy); in detectFPCCEligibleStructHelper()
11128 if (isEmptyRecord(getContext(), Ty, true)) in detectFPCCEligibleStructHelper()
11134 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in detectFPCCEligibleStructHelper()
11153 unsigned BitWidth = FD->getBitWidthValue(getContext()); in detectFPCCEligibleStructHelper()
11156 if (getContext().getTypeSize(QTy) > XLen && BitWidth <= XLen) in detectFPCCEligibleStructHelper()
11157 QTy = getContext().getIntTypeForBitwidth(XLen, false); in detectFPCCEligibleStructHelper()
11165 QTy, CurOff + getContext().toCharUnitsFromBits(FieldOffInBits), in detectFPCCEligibleStructHelper()
11280 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
11283 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
11296 if (getContext().getTypeSize(EltTy) <= FLen) { in classifyArgumentType()
11321 uint64_t NeededAlign = getContext().getTypeAlign(Ty); in classifyArgumentType()
11351 (!getContext().getTargetInfo().hasInt128Type() && in classifyArgumentType()
11362 unsigned Alignment = getContext().getTypeAlign(Ty); in classifyArgumentType()
11398 if (isEmptyRecord(getContext(), Ty, true)) { in EmitVAArg()
11405 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
11415 int TySize = getContext().getTypeSize(Ty); in extendType()
11470 uint64_t Size = getContext().getTypeSize(Ty); in classifyReturnType()
11479 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
11555 if (isEmptyRecord(getContext(), Ty, true)) { in EmitVAArg()
11562 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
11584 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
11588 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyArgumentType()
11591 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
11603 if (getContext().getTypeSize(EltTy) <= FLen) { in classifyArgumentType()
11678 uint64_t Bits = getContext().getTypeSize(Ty); in classifyArgumentType()
11701 ASTContext &Context = getContext(); in classifyArgumentType()
11721 ASTContext &Context = getContext(); in classifyReturnType()
11810 getContext().getTypeSize(RetTy) > (2 * GRLen)) { in computeInfo()
11813 IsRetIndirect = getContext().getTypeSize(EltTy) > FRLen; in computeInfo()
11845 uint64_t Size = getContext().getTypeSize(Ty); in detectFARsEligibleStructHelper()
11874 if (getContext().getTypeSize(EltTy) > FRLen) in detectFARsEligibleStructHelper()
11879 Field2Off = Field1Off + getContext().getTypeSizeInChars(EltTy); in detectFARsEligibleStructHelper()
11883 if (const ConstantArrayType *ATy = getContext().getAsConstantArrayType(Ty)) { in detectFARsEligibleStructHelper()
11886 CharUnits EltSize = getContext().getTypeSizeInChars(EltTy); in detectFARsEligibleStructHelper()
11901 if (isEmptyRecord(getContext(), Ty, true)) in detectFARsEligibleStructHelper()
11907 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in detectFARsEligibleStructHelper()
11922 unsigned BitWidth = FD->getBitWidthValue(getContext()); in detectFARsEligibleStructHelper()
11928 if (getContext().getTypeSize(QTy) > GRLen && BitWidth <= GRLen) { in detectFARsEligibleStructHelper()
11929 QTy = getContext().getIntTypeForBitwidth(GRLen, false); in detectFARsEligibleStructHelper()
11935 CurOff + getContext().toCharUnitsFromBits( in detectFARsEligibleStructHelper()
12038 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
12041 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
12054 if (getContext().getTypeSize(EltTy) <= FRLen) { in classifyArgumentType()
12077 uint64_t NeededAlign = getContext().getTypeAlign(Ty); in classifyArgumentType()
12105 (!getContext().getTargetInfo().hasInt128Type() && in classifyArgumentType()
12123 if (getContext().getTypeAlign(Ty) == 2 * GRLen) { in classifyArgumentType()
12148 if (isEmptyRecord(getContext(), Ty, true)) { in EmitVAArg()
12155 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
12165 int TySize = getContext().getTypeSize(Ty); in extendType()