Lines Matching refs:getContext

89   return ABIArgInfo::getIndirect(getContext().getTypeAlignInChars(Ty), ByVal,  in getNaturalAlignIndirect()
95 return ABIArgInfo::getIndirectInReg(getContext().getTypeAlignInChars(Ty), in getNaturalAlignIndirectInReg()
106 CGF.getContext().getBuiltinVaListType()->getPointeeType()); in getVAListElementType()
114 if (EIT->getNumBits() < getContext().getTypeSize(getContext().IntTy)) in isPromotableIntegerTypeForABI()
212 ASTContext &ABIInfo::getContext() const { in getContext() function in ABIInfo
213 return CGT.getContext(); in getContext()
245 return getContext().getLangOpts().CPlusPlus; in isZeroLengthBitfieldPermittedInHomogeneousAggregate()
702 auto TyInfo = CGF.getContext().getTypeInfoInChars(Ty); in EmitVAArgInstr()
777 ASTContext &Context = getContext(); in classifyArgumentType()
802 getContext().getTypeSize(getContext().getTargetInfo().hasInt128Type() in classifyReturnType()
803 ? getContext().Int128Ty in classifyReturnType()
804 : getContext().LongLongTy)) in classifyReturnType()
871 llvm::AttrBuilder B(GV->getContext()); in setTargetAttributes()
877 llvm::AttrBuilder B(GV->getContext()); in setTargetAttributes()
883 llvm::AttrBuilder B(GV->getContext()); in setTargetAttributes()
907 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
912 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyArgumentType()
940 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
945 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
960 !isEmptyRecord(getContext(), Ty, true) && in EmitVAArg()
961 !isSingleElementStruct(Ty, getContext()); in EmitVAArg()
963 getContext().getTypeInfoInChars(Ty), in EmitVAArg()
1161 return isX86VectorTypeForVectorCall(getContext(), Ty); in isHomogeneousAggregateBaseType()
1347 uint64_t RetWidth = CGF.getContext().getTypeSize(ReturnSlot.getType()); in addReturnRegisterOutputs()
1496 if (!addBaseAndFieldSizes(getContext(), CXXRD, Size)) in canExpandIndirectArgument()
1499 if (!addFieldSizes(getContext(), RD, Size)) in canExpandIndirectArgument()
1504 return Size == getContext().getTypeSize(Ty); in canExpandIndirectArgument()
1535 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
1569 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
1574 QualType ET = getContext().getCanonicalType(CT->getElementType()); in classifyReturnType()
1582 if (shouldReturnTypeInRegister(RetTy, getContext())) { in classifyReturnType()
1583 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
1590 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
1666 if (Align >= 16 && (isSIMDVectorType(getContext(), Ty) || in getTypeStackAlignInBytes()
1667 isRecordWithSIMDVectorType(getContext(), Ty))) in getTypeStackAlignInBytes()
1685 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectResult()
1698 const Type *T = isSingleElementStruct(Ty, getContext()); in classify()
1717 unsigned Size = getContext().getTypeSize(Ty); in updateFreeRegs()
1762 if (getContext().getTypeSize(Ty) <= 32 && State.FreeRegs) in shouldAggregateUseDirect()
1781 if (getContext().getTypeSize(Ty) > 32) in shouldPrimitiveUseInReg()
1825 TypeInfo TI = getContext().getTypeInfo(Ty); in classifyArgumentType()
1867 if (!IsWin32StructABI && isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
2037 StackOffset += IsIndirect ? WordSize : getContext().getTypeSizeInChars(Type); in addFieldToArgStruct()
2118 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
2172 Fn->getContext(), ByValTy); in addX86InterruptAttrs()
2370 if (getContext().getLangOpts().getClangABICompat() <= in classifyIntegerMMXAsSSE()
2385 if (getContext().getLangOpts().getClangABICompat() <= in passInt128VectorsInMem()
2451 return isX86VectorTypeForVectorCall(getContext(), Ty); in isHomogeneousAggregateBaseType()
2638 CGM.getContext().getTypeSize(Arg.getType()) > 128) { in checkFunctionCallABI()
2639 initFeatureMaps(CGM.getContext(), CallerMap, Caller, CalleeMap, Callee); in checkFunctionCallABI()
2646 if (checkAVXParam(CGM.getDiags(), CGM.getContext(), CallLoc, CallerMap, in checkFunctionCallABI()
2656 CGM.getContext().getTypeSize(Callee->getReturnType()) > 128) { in checkFunctionCallABI()
2657 initFeatureMaps(CGM.getContext(), CallerMap, Caller, CalleeMap, Callee); in checkFunctionCallABI()
2658 checkAVXParam(CGM.getDiags(), CGM.getContext(), CallLoc, CallerMap, in checkFunctionCallABI()
2929 uint64_t Size = getContext().getTypeSize(VT); in classify()
2997 QualType ET = getContext().getCanonicalType(CT->getElementType()); in classify()
2999 uint64_t Size = getContext().getTypeSize(Ty); in classify()
3005 } else if (ET->isFloat16Type() || ET == getContext().FloatTy || in classify()
3008 } else if (ET == getContext().DoubleTy) { in classify()
3010 } else if (ET == getContext().LongDoubleTy) { in classify()
3025 uint64_t EB_Imag = (OffsetBase + getContext().getTypeSize(ET)) / 64; in classify()
3041 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in classify()
3044 uint64_t Size = getContext().getTypeSize(Ty); in classify()
3057 if (OffsetBase % getContext().getTypeAlign(AT->getElementType())) in classify()
3063 uint64_t EltSize = getContext().getTypeSize(AT->getElementType()); in classify()
3089 uint64_t Size = getContext().getTypeSize(Ty); in classify()
3108 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in classify()
3128 OffsetBase + getContext().toBits(Layout.getBaseClassOffset(Base)); in classify()
3141 bool UseClang11Compat = getContext().getLangOpts().getClangABICompat() <= in classify()
3143 getContext().getTargetInfo().getTriple().isPS(); in classify()
3165 ((!IsUnion && Size != getContext().getTypeSize(i->getType())) || in classify()
3172 if (!BitField && Offset % getContext().getTypeAlign(i->getType())) { in classify()
3192 uint64_t Size = i->getBitWidthValue(getContext()); in classify()
3237 uint64_t Size = getContext().getTypeSize(VecTy); in IsIllegalVectorType()
3276 unsigned Align = std::max(getContext().getTypeAlign(Ty) / 8, 8U); in getIndirectResult()
3300 uint64_t Size = getContext().getTypeSize(Ty); in getIndirectResult()
3317 if (const Type *InnerTy = isSingleElementStruct(Ty, getContext())) in GetByteVectorType()
3327 uint64_t Size = getContext().getTypeSize(Ty); in GetByteVectorType()
3339 uint64_t Size = getContext().getTypeSize(Ty); in GetByteVectorType()
3467 (unsigned)getContext().getTypeSize(SourceTy) / 8 - SourceOffset; in GetSSETypeAtOffset()
3546 SourceOffset*8+64, getContext())) in GetINTEGERTypeAtOffset()
3574 (unsigned)getContext().getTypeSizeInChars(SourceTy).getQuantity(); in GetINTEGERTypeAtOffset()
3613 Lo = llvm::Type::getDoubleTy(Lo->getContext()); in GetX86_64ByValArgumentPair()
3617 Lo = llvm::Type::getInt64Ty(Lo->getContext()); in GetX86_64ByValArgumentPair()
3929 if (const auto *AT = getContext().getAsConstantArrayType(MTy)) in classifyRegCallStructTypeImpl()
3932 if (getContext().getTypeSize(VT) > MaxVectorWidth) in classifyRegCallStructTypeImpl()
3933 MaxVectorWidth = getContext().getTypeSize(VT); in classifyRegCallStructTypeImpl()
3986 getContext().getCanonicalType(FI.getReturnType() in computeInfo()
3989 getContext().LongDoubleTy) in computeInfo()
4049 CharUnits Align = CGF.getContext().getTypeAlignInChars(Ty); in EmitX86_64VAArgFromMemory()
4066 uint64_t SizeInBytes = (CGF.getContext().getTypeSize(Ty) + 7) / 8; in EmitX86_64VAArgFromMemory()
4088 Ty = getContext().getCanonicalType(Ty); in EmitVAArg()
4191 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4269 uint64_t Width = getContext().getTypeSize(Ty); in EmitMSVAArg()
4273 CGF.getContext().getTypeInfoInChars(Ty), in EmitMSVAArg()
4301 TypeInfo Info = getContext().getTypeInfo(Ty); in classify()
4303 CharUnits Align = getContext().toCharUnitsFromBits(Info.Align); in classify()
4471 uint64_t Width = getContext().getTypeSize(Ty); in EmitVAArg()
4475 CGF.getContext().getTypeInfoInChars(Ty), in EmitVAArg()
4648 CharUnits TyAlign = getContext().getTypeAlignInChars(Ty); in classifyArgumentType()
4667 if (isRecordWithSIMDVectorType(getContext(), Ty)) in getParamTypeAlignment()
4676 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4757 return CharUnits::fromQuantity(getContext().getTypeSize(Ty) == 128 ? 16 in getParamTypeAlignment()
4763 if (const Type *EltType = isSingleElementStruct(Ty, getContext())) { in getParamTypeAlignment()
4765 if ((EltType->isVectorType() && getContext().getTypeSize(EltType) == 128) || in getParamTypeAlignment()
4780 (Size = getContext().getTypeSize(RetTy)) <= 64) { in classifyReturnType()
4808 auto TI = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4832 bool isI64 = Ty->isIntegerType() && getContext().getTypeSize(Ty) == 64; in EmitVAArg()
4834 bool isF64 = Ty->isFloatingType() && getContext().getTypeSize(Ty) == 64; in EmitVAArg()
4917 auto TypeInfo = CGF.getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4928 CharUnits Align = CGF.getContext().getTypeAlignInChars(Ty); in EmitVAArg()
4952 getContext().getTypeAlignInChars(Ty)); in EmitVAArg()
5028 const Type *T = isSingleElementStruct(I.type, getContext()); in computeInfo()
5031 if ((T->isVectorType() && getContext().getTypeSize(T) == 128) || in computeInfo()
5126 return Ty->isRealFloatingType() && &getContext().getFloatTypeSemantics( in getParamTypeAlignment()
5133 return CharUnits::fromQuantity(getContext().getTypeSize(Ty) == 128 ? 16 : 8); in getParamTypeAlignment()
5144 const Type *EltType = isSingleElementStruct(Ty, getContext()); in getParamTypeAlignment()
5147 if ((EltType->isVectorType() && getContext().getTypeSize(EltType) == 128) || in getParamTypeAlignment()
5168 if (isAggregateTypeForABI(Ty) && getContext().getTypeAlign(Ty) >= 128) { in getParamTypeAlignment()
5180 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in isHomogeneousAggregate()
5202 if (isEmptyRecord(getContext(), I.getType(), true)) in isHomogeneousAggregate()
5217 getContext().getAsConstantArrayType(FT)) { in isHomogeneousAggregate()
5222 if (isEmptyRecord(getContext(), FT, true)) in isHomogeneousAggregate()
5226 FD->isZeroLengthBitField(getContext())) in isHomogeneousAggregate()
5241 if (getContext().getTypeSize(Base) * Members != in isHomogeneousAggregate()
5242 getContext().getTypeSize(Ty)) in isHomogeneousAggregate()
5266 getContext().getTypeSize(VT) / getContext().getTypeSize(EltTy); in isHomogeneousAggregate()
5267 Base = getContext() in isHomogeneousAggregate()
5274 getContext().getTypeSize(Base) != getContext().getTypeSize(TyPtr)) in isHomogeneousAggregate()
5288 (getContext().getTargetInfo().hasFloat128Type() && in isHomogeneousAggregateBaseType()
5296 if (getContext().getTypeSize(VT) == 128) in isHomogeneousAggregateBaseType()
5307 ((getContext().getTargetInfo().hasFloat128Type() && in isHomogeneousAggregateSmallEnough()
5310 : (getContext().getTypeSize(Base) + 63) / 64; in isHomogeneousAggregateSmallEnough()
5326 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
5344 uint64_t TyAlign = getContext().getTypeAlignInChars(Ty).getQuantity(); in classifyArgumentType()
5360 uint64_t Bits = getContext().getTypeSize(Ty); in classifyArgumentType()
5402 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
5427 uint64_t Bits = getContext().getTypeSize(RetTy); in classifyReturnType()
5453 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
5727 uint64_t Size = getContext().getTypeSize(Ty); in coerceIllegalVector()
5782 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
5783 bool IsEmpty = isEmptyRecord(getContext(), Ty, true); in classifyArgumentType()
5785 if (!getContext().getLangOpts().CPlusPlus || isDarwinPCS()) in classifyArgumentType()
5810 getContext().getTypeUnadjustedAlignInChars(Ty).getQuantity(); in classifyArgumentType()
5811 unsigned BaseAlign = getContext().getTypeAlignInChars(Base).getQuantity(); in classifyArgumentType()
5823 return coerceToIntArray(Ty, getContext(), getVMContext()); in classifyArgumentType()
5827 Alignment = getContext().getTypeUnadjustedAlign(Ty); in classifyArgumentType()
5830 Alignment = std::max(getContext().getTypeAlign(Ty), in classifyArgumentType()
5858 if (RetTy->isVectorType() && getContext().getTypeSize(RetTy) > 128) in classifyReturnType()
5875 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
5876 if (isEmptyRecord(getContext(), RetTy, true) || Size == 0) in classifyReturnType()
5892 return coerceToIntArray(RetTy, getContext(), getVMContext()); in classifyReturnType()
5906 unsigned Alignment = getContext().getTypeAlign(RetTy); in classifyReturnType()
5933 uint64_t Size = getContext().getTypeSize(VT); in isIllegalVectorType()
5970 unsigned VecSize = getContext().getTypeSize(VT); in isHomogeneousAggregateBaseType()
6027 CharUnits TySize = getContext().getTypeSizeInChars(Ty); in EmitAAPCSVAArg()
6028 CharUnits TyAlign = getContext().getTypeUnadjustedAlignInChars(Ty); in EmitAAPCSVAArg()
6129 auto BaseTyInfo = getContext().getTypeInfoInChars(QualType(Base, 0)); in EmitAAPCSVAArg()
6250 if (isEmptyRecord(getContext(), Ty, true)) { in EmitDarwinVAArg()
6259 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitDarwinVAArg()
6279 if (isAggregateTypeForABI(Ty) && getContext().getTypeSize(Ty) > 128) in EmitMSVAArg()
6283 CGF.getContext().getTypeInfoInChars(Ty), in EmitMSVAArg()
6486 llvm::AttrBuilder B(Fn->getContext()); in setTargetAttributes()
6573 uint64_t Size = getContext().getTypeSize(Ty); in coerceIllegalVector()
6595 uint64_t Size = getContext().getTypeSize(VT); in classifyHomogeneousAggregate()
6607 Align = getContext().getTypeUnadjustedAlignInChars(Ty).getQuantity(); in classifyHomogeneousAggregate()
6608 unsigned BaseAlign = getContext().getTypeAlignInChars(Base).getQuantity(); in classifyHomogeneousAggregate()
6652 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
6677 getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(16)) { in classifyArgumentType()
6682 CharUnits::fromQuantity(getContext().getTypeAlign(Ty) / 8), false); in classifyArgumentType()
6693 TyAlign = getContext().getTypeUnadjustedAlignInChars(Ty).getQuantity(); in classifyArgumentType()
6696 TyAlign = getContext().getTypeAlignInChars(Ty).getQuantity(); in classifyArgumentType()
6698 if (getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(64)) { in classifyArgumentType()
6708 return coerceToIntArray(Ty, getContext(), getVMContext()); in classifyArgumentType()
6718 SizeRegs = (getContext().getTypeSize(Ty) + 31) / 32; in classifyArgumentType()
6721 SizeRegs = (getContext().getTypeSize(Ty) + 63) / 64; in classifyArgumentType()
6824 if (getContext().getTypeSize(RetTy) > 128) in classifyReturnType()
6851 if (isEmptyRecord(getContext(), RetTy, false)) in classifyReturnType()
6860 getVMContext(), getContext().getTypeSize(RetTy))); in classifyReturnType()
6863 if (isIntegerLikeType(RetTy, getContext(), getVMContext())) { in classifyReturnType()
6865 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
6879 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
6892 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
6897 return coerceToIntArray(RetTy, getContext(), getVMContext()); in classifyReturnType()
6947 uint64_t Size = getContext().getTypeSize(VT); in isIllegalVectorType()
6960 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in containsAnyFP16Vectors()
7013 unsigned VecSize = getContext().getTypeSize(VT); in isHomogeneousAggregateBaseType()
7049 if (isEmptyRecord(getContext(), Ty, true)) { in EmitVAArg()
7056 CharUnits TySize = getContext().getTypeSizeInChars(Ty); in EmitVAArg()
7057 CharUnits TyAlignForABI = getContext().getTypeUnadjustedAlignInChars(Ty); in EmitVAArg()
7181 ASTContext &Context = getContext(); in isUnsupportedType()
7217 const uint64_t Size = getContext().getTypeSize(Ty); in coerceToIntArrayWithLimit()
7218 const uint64_t Alignment = getContext().getTypeAlign(Ty); in coerceToIntArrayWithLimit()
7229 if (getContext().getLangOpts().OpenMP && in classifyReturnType()
7230 getContext().getLangOpts().OpenMPIsDevice && isUnsupportedType(RetTy)) in classifyReturnType()
7254 if (getContext().getLangOpts().CUDAIsDevice) { in classifyArgumentType()
7267 (!getContext().getTargetInfo().hasInt128Type() && in classifyArgumentType()
7339 MaxThreads = Attr->getMaxThreads()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes()
7348 MinBlocks = Attr->getMinBlocks()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes()
7360 llvm::LLVMContext &Ctx = M->getContext(); in addNVVMMetadata()
7437 auto &Ctx = M.getContext(); in testFPKind()
7504 getContext().getTypeSize(Ty) <= 128); in isVectorArgumentType()
7536 if (isEmptyRecord(getContext(), Base, true)) in GetSingleElementType()
7551 isEmptyRecord(getContext(), FD->getType(), true)) in GetSingleElementType()
7583 Ty = getContext().getCanonicalType(Ty); in EmitVAArg()
7584 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
7731 if (isCompoundType(RetTy) || getContext().getTypeSize(RetTy) > 64) in classifyReturnType()
7749 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
7752 getContext().getTypeSize(SingleElementTy) == Size) in classifyArgumentType()
7996 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in HandleAggregates()
8045 uint64_t TySize = getContext().getTypeSize(Ty); in classifyArgumentType()
8046 uint64_t Align = getContext().getTypeAlign(Ty) / 8; in classifyArgumentType()
8081 !getContext().getTargetInfo().hasInt128Type())) in classifyArgumentType()
8099 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in returnAggregateInRegs()
8135 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
8172 !getContext().getTargetInfo().hasInt128Type())) in classifyReturnType()
8207 getContext().getIntWidth(Ty) < SlotSizeInBits) || in EmitVAArg()
8210 Ty = getContext().getIntTypeForBitwidth(SlotSizeInBits, in EmitVAArg()
8214 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
8249 int TySize = getContext().getTypeSize(Ty); in extendType()
8349 if (getContext().getTypeSize(Ty) <= RetRegs * 8) in classifyReturnType()
8361 unsigned TySize = getContext().getTypeSize(Ty); in classifyArgumentType()
8485 llvm::LLVMContext &Context = F->getContext(); in setTargetAttributes()
8604 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
8619 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
8622 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
8623 unsigned Align = getContext().getTypeAlign(Ty); in classifyArgumentType()
8644 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
8671 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
8694 uint64_t Align = CGF.getContext().getTypeAlign(Ty) / 8; in EmitVAArgFromMemory()
8725 uint64_t Offset = llvm::alignTo(CGF.getContext().getTypeSize(Ty) / 8, 4); in EmitVAArgFromMemory()
8745 uint64_t TyAlign = CGF.getContext().getTypeAlign(Ty) / 8; in EmitVAArgForHexagon()
8757 uint64_t Offset = llvm::alignTo(CGF.getContext().getTypeSize(Ty) / 8, 4); in EmitVAArgForHexagon()
8768 int ArgSize = CGF.getContext().getTypeSize(Ty) / 8; in EmitVAArgForHexagonLinux()
8778 Ty = CGF.getContext().getCanonicalType(Ty); in EmitVAArgForHexagonLinux()
8788 ArgSize = (CGF.getContext().getTypeSize(Ty) <= 32) ? 4 : 8; in EmitVAArgForHexagonLinux()
8789 int ArgAlign = (CGF.getContext().getTypeSize(Ty) <= 32) ? 4 : 8; in EmitVAArgForHexagonLinux()
8959 unsigned Size = getContext().getTypeSize(Ty); in shouldUseInReg()
8987 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectResult()
9012 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
9016 unsigned SizeInRegs = (getContext().getTypeSize(Ty) + 31) / 32; in classifyArgumentType()
9103 uint32_t NumRegs = (getContext().getTypeSize(Base) + 31) / 32; in isHomogeneousAggregateSmallEnough()
9117 unsigned EltSize = getContext().getTypeSize(EltTy); in numRegsForType()
9139 return (getContext().getTypeSize(Ty) + 31) / 32; in numRegsForType()
9169 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
9173 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
9183 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
9211 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyKernelArgumentType()
9216 if (getContext().getLangOpts().HIP) { in classifyKernelArgumentType()
9218 OrigLTy, /*FromAS=*/getContext().getTargetAddressSpace(LangAS::Default), in classifyKernelArgumentType()
9219 /*ToAS=*/getContext().getTargetAddressSpace(LangAS::cuda_device)); in classifyKernelArgumentType()
9228 if (!getContext().getLangOpts().OpenCL && LTy == OrigLTy && in classifyKernelArgumentType()
9231 getContext().getTypeAlignInChars(Ty), in classifyKernelArgumentType()
9232 getContext().getTargetAddressSpace(LangAS::opencl_constant), in classifyKernelArgumentType()
9255 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
9261 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyArgumentType()
9271 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
9367 ->EvaluateKnownConstInt(M.getContext()) in setFunctionDeclAttributes()
9370 ->EvaluateKnownConstInt(M.getContext()) in setFunctionDeclAttributes()
9397 Attr->getMin()->EvaluateKnownConstInt(M.getContext()).getExtValue(); in setFunctionDeclAttributes()
9399 ->EvaluateKnownConstInt(M.getContext()) in setFunctionDeclAttributes()
9453 if (M.getContext().getTargetInfo().allowAMDGPUUnsafeFPAtomics()) in setTargetAttributes()
9472 if (CGM.getContext().getTargetNullPointerValue(QT) == 0) in getNullPointer()
9475 auto &Ctx = CGM.getContext(); in getNullPointer()
9489 CGM.getContext().getTargetAddressSpace(LangAS::opencl_global)); in getGlobalVarAddressSpace()
9551 FT = getABIInfo().getContext().adjustFunctionType( in setCUDAKernelCallingConvention()
9770 uint64_t Size = getContext().getTypeSize(Ty); in classifyType()
9831 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
9958 unsigned sz = (getContext().getTypeSize(Ty) + 31) / 32; in updateState()
10001 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectByValue()
10009 getContext().getTypeInfoInChars(Ty), in EmitVAArg()
10030 auto SizeInRegs = llvm::alignTo(getContext().getTypeSize(Ty), 32) / 32; in classifyArgumentType()
10038 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
10068 auto RetSize = llvm::alignTo(getContext().getTypeSize(RetTy), 32) / 32; in classifyReturnType()
10210 CharUnits TypeAlign = getContext().getTypeAlignInChars(Ty); in EmitVAArg()
10364 llvm::LLVMContext &Ctx = CGM.getModule().getContext(); in emitTargetMD()
10441 if (getContext().getLangOpts().CUDAIsDevice) { in classifyKernelArgumentType()
10446 auto DefaultAS = getContext().getTargetAddressSpace(LangAS::Default); in classifyKernelArgumentType()
10447 auto GlobalAS = getContext().getTargetAddressSpace(LangAS::cuda_device); in classifyKernelArgumentType()
10501 if (getABIInfo().getContext().getLangOpts().HIP) { in setCUDAKernelCallingConvention()
10502 FT = getABIInfo().getContext().adjustFunctionType( in setCUDAKernelCallingConvention()
10527 OS << Field->getBitWidthValue(CGM.getContext()); in extractFieldType()
10901 getContext().getTypeSize(RetTy) > (2 * XLen)) { in computeInfo()
10904 IsRetIndirect = getContext().getTypeSize(EltTy) > FLen; in computeInfo()
10942 uint64_t Size = getContext().getTypeSize(Ty); in detectFPCCEligibleStructHelper()
10971 if (getContext().getTypeSize(EltTy) > FLen) in detectFPCCEligibleStructHelper()
10976 Field2Off = Field1Off + getContext().getTypeSizeInChars(EltTy); in detectFPCCEligibleStructHelper()
10980 if (const ConstantArrayType *ATy = getContext().getAsConstantArrayType(Ty)) { in detectFPCCEligibleStructHelper()
10983 CharUnits EltSize = getContext().getTypeSizeInChars(EltTy); in detectFPCCEligibleStructHelper()
10999 if (isEmptyRecord(getContext(), Ty, true)) in detectFPCCEligibleStructHelper()
11005 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in detectFPCCEligibleStructHelper()
11024 unsigned BitWidth = FD->getBitWidthValue(getContext()); in detectFPCCEligibleStructHelper()
11027 if (getContext().getTypeSize(QTy) > XLen && BitWidth <= XLen) in detectFPCCEligibleStructHelper()
11028 QTy = getContext().getIntTypeForBitwidth(XLen, false); in detectFPCCEligibleStructHelper()
11036 QTy, CurOff + getContext().toCharUnitsFromBits(FieldOffInBits), in detectFPCCEligibleStructHelper()
11151 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
11154 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
11167 if (getContext().getTypeSize(EltTy) <= FLen) { in classifyArgumentType()
11192 uint64_t NeededAlign = getContext().getTypeAlign(Ty); in classifyArgumentType()
11225 (!getContext().getTargetInfo().hasInt128Type() && in classifyArgumentType()
11236 unsigned Alignment = getContext().getTypeAlign(Ty); in classifyArgumentType()
11272 if (isEmptyRecord(getContext(), Ty, true)) { in EmitVAArg()
11279 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
11289 int TySize = getContext().getTypeSize(Ty); in extendType()
11344 uint64_t Size = getContext().getTypeSize(Ty); in classifyReturnType()
11353 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
11429 if (isEmptyRecord(getContext(), Ty, true)) { in EmitVAArg()
11436 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
11458 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
11462 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyArgumentType()
11465 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
11477 if (getContext().getTypeSize(EltTy) <= FLen) { in classifyArgumentType()