Lines Matching refs:getContext

88   return ABIArgInfo::getIndirect(getContext().getTypeAlignInChars(Ty), ByVal,  in getNaturalAlignIndirect()
94 return ABIArgInfo::getIndirectInReg(getContext().getTypeAlignInChars(Ty), in getNaturalAlignIndirectInReg()
108 if (EIT->getNumBits() < getContext().getTypeSize(getContext().IntTy)) in isPromotableIntegerTypeForABI()
206 ASTContext &ABIInfo::getContext() const { in getContext() function in ABIInfo
207 return CGT.getContext(); in getContext()
660 auto TyInfo = CGF.getContext().getTypeInfoInChars(Ty); in EmitVAArgInstr()
734 ASTContext &Context = getContext(); in classifyArgumentType()
759 getContext().getTypeSize(getContext().getTargetInfo().hasInt128Type() in classifyReturnType()
760 ? getContext().Int128Ty in classifyReturnType()
761 : getContext().LongLongTy)) in classifyReturnType()
864 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
869 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyArgumentType()
897 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
902 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
917 !isEmptyRecord(getContext(), Ty, true) && in EmitVAArg()
918 !isSingleElementStruct(Ty, getContext()); in EmitVAArg()
920 getContext().getTypeInfoInChars(Ty), in EmitVAArg()
1117 return isX86VectorTypeForVectorCall(getContext(), Ty); in isHomogeneousAggregateBaseType()
1302 uint64_t RetWidth = CGF.getContext().getTypeSize(ReturnSlot.getType()); in addReturnRegisterOutputs()
1451 if (!addBaseAndFieldSizes(getContext(), CXXRD, Size)) in canExpandIndirectArgument()
1454 if (!addFieldSizes(getContext(), RD, Size)) in canExpandIndirectArgument()
1459 return Size == getContext().getTypeSize(Ty); in canExpandIndirectArgument()
1490 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
1524 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
1529 if (shouldReturnTypeInRegister(RetTy, getContext())) { in classifyReturnType()
1530 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
1537 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
1613 if (Align >= 16 && (isSIMDVectorType(getContext(), Ty) || in getTypeStackAlignInBytes()
1614 isRecordWithSIMDVectorType(getContext(), Ty))) in getTypeStackAlignInBytes()
1632 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectResult()
1645 const Type *T = isSingleElementStruct(Ty, getContext()); in classify()
1664 unsigned Size = getContext().getTypeSize(Ty); in updateFreeRegs()
1709 if (getContext().getTypeSize(Ty) <= 32 && State.FreeRegs) in shouldAggregateUseDirect()
1728 if (getContext().getTypeSize(Ty) > 32) in shouldPrimitiveUseInReg()
1772 TypeInfo TI = getContext().getTypeInfo(Ty); in classifyArgumentType()
1814 if (!IsWin32StructABI && isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
1984 StackOffset += IsIndirect ? WordSize : getContext().getTypeSizeInChars(Type); in addFieldToArgStruct()
2065 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
2119 Fn->getContext(), ByValTy); in addX86InterruptAttrs()
2312 if (getContext().getLangOpts().getClangABICompat() <= in classifyIntegerMMXAsSSE()
2327 if (getContext().getLangOpts().getClangABICompat() <= in passInt128VectorsInMem()
2393 return isX86VectorTypeForVectorCall(getContext(), Ty); in isHomogeneousAggregateBaseType()
2580 CGM.getContext().getTypeSize(Arg.getType()) > 128) { in checkFunctionCallABI()
2581 initFeatureMaps(CGM.getContext(), CallerMap, Caller, CalleeMap, Callee); in checkFunctionCallABI()
2588 if (checkAVXParam(CGM.getDiags(), CGM.getContext(), CallLoc, CallerMap, in checkFunctionCallABI()
2598 CGM.getContext().getTypeSize(Callee->getReturnType()) > 128) { in checkFunctionCallABI()
2599 initFeatureMaps(CGM.getContext(), CallerMap, Caller, CalleeMap, Callee); in checkFunctionCallABI()
2600 checkAVXParam(CGM.getDiags(), CGM.getContext(), CallLoc, CallerMap, in checkFunctionCallABI()
2870 uint64_t Size = getContext().getTypeSize(VT); in classify()
2938 QualType ET = getContext().getCanonicalType(CT->getElementType()); in classify()
2940 uint64_t Size = getContext().getTypeSize(Ty); in classify()
2946 } else if (ET == getContext().FloatTy) { in classify()
2948 } else if (ET == getContext().DoubleTy) { in classify()
2950 } else if (ET == getContext().LongDoubleTy) { in classify()
2965 uint64_t EB_Imag = (OffsetBase + getContext().getTypeSize(ET)) / 64; in classify()
2981 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in classify()
2984 uint64_t Size = getContext().getTypeSize(Ty); in classify()
2995 if (OffsetBase % getContext().getTypeAlign(AT->getElementType())) in classify()
3001 uint64_t EltSize = getContext().getTypeSize(AT->getElementType()); in classify()
3027 uint64_t Size = getContext().getTypeSize(Ty); in classify()
3046 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in classify()
3066 OffsetBase + getContext().toBits(Layout.getBaseClassOffset(Base)); in classify()
3079 bool UseClang11Compat = getContext().getLangOpts().getClangABICompat() <= in classify()
3081 getContext().getTargetInfo().getTriple().isPS4(); in classify()
3103 ((!IsUnion && Size != getContext().getTypeSize(i->getType())) || in classify()
3110 if (!BitField && Offset % getContext().getTypeAlign(i->getType())) { in classify()
3130 uint64_t Size = i->getBitWidthValue(getContext()); in classify()
3175 uint64_t Size = getContext().getTypeSize(VecTy); in IsIllegalVectorType()
3214 unsigned Align = std::max(getContext().getTypeAlign(Ty) / 8, 8U); in getIndirectResult()
3238 uint64_t Size = getContext().getTypeSize(Ty); in getIndirectResult()
3255 if (const Type *InnerTy = isSingleElementStruct(Ty, getContext())) in GetByteVectorType()
3265 uint64_t Size = getContext().getTypeSize(Ty); in GetByteVectorType()
3277 uint64_t Size = getContext().getTypeSize(Ty); in GetByteVectorType()
3409 SourceOffset*8+64, getContext())) in GetSSETypeAtOffset()
3462 SourceOffset*8+64, getContext())) in GetINTEGERTypeAtOffset()
3490 (unsigned)getContext().getTypeSizeInChars(SourceTy).getQuantity(); in GetINTEGERTypeAtOffset()
3529 Lo = llvm::Type::getDoubleTy(Lo->getContext()); in GetX86_64ByValArgumentPair()
3533 Lo = llvm::Type::getInt64Ty(Lo->getContext()); in GetX86_64ByValArgumentPair()
3891 getContext().getCanonicalType(FI.getReturnType() in computeInfo()
3894 getContext().LongDoubleTy) in computeInfo()
3949 CharUnits Align = CGF.getContext().getTypeAlignInChars(Ty); in EmitX86_64VAArgFromMemory()
3966 uint64_t SizeInBytes = (CGF.getContext().getTypeSize(Ty) + 7) / 8; in EmitX86_64VAArgFromMemory()
3988 Ty = getContext().getCanonicalType(Ty); in EmitVAArg()
4091 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4169 uint64_t Width = getContext().getTypeSize(Ty); in EmitMSVAArg()
4173 CGF.getContext().getTypeInfoInChars(Ty), in EmitMSVAArg()
4201 TypeInfo Info = getContext().getTypeInfo(Ty); in classify()
4203 CharUnits Align = getContext().toCharUnitsFromBits(Info.Align); in classify()
4371 uint64_t Width = getContext().getTypeSize(Ty); in EmitVAArg()
4375 CGF.getContext().getTypeInfoInChars(Ty), in EmitVAArg()
4548 CharUnits TyAlign = getContext().getTypeAlignInChars(Ty); in classifyArgumentType()
4567 if (isRecordWithSIMDVectorType(getContext(), Ty)) in getParamTypeAlignment()
4578 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4646 return CharUnits::fromQuantity(getContext().getTypeSize(Ty) == 128 ? 16 in getParamTypeAlignment()
4652 if (const Type *EltType = isSingleElementStruct(Ty, getContext())) { in getParamTypeAlignment()
4654 if ((EltType->isVectorType() && getContext().getTypeSize(EltType) == 128) || in getParamTypeAlignment()
4669 (Size = getContext().getTypeSize(RetTy)) <= 64) { in classifyReturnType()
4697 auto TI = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4721 bool isI64 = Ty->isIntegerType() && getContext().getTypeSize(Ty) == 64; in EmitVAArg()
4723 bool isF64 = Ty->isFloatingType() && getContext().getTypeSize(Ty) == 64; in EmitVAArg()
4806 auto TypeInfo = CGF.getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4816 CharUnits Align = CGF.getContext().getTypeAlignInChars(Ty); in EmitVAArg()
4840 getContext().getTypeAlignInChars(Ty)); in EmitVAArg()
4916 const Type *T = isSingleElementStruct(I.type, getContext()); in computeInfo()
4919 if ((T->isVectorType() && getContext().getTypeSize(T) == 128) || in computeInfo()
5016 return CharUnits::fromQuantity(getContext().getTypeSize(Ty) == 128 ? 16 : 8); in getParamTypeAlignment()
5018 &getContext().getFloatTypeSemantics(Ty) == in getParamTypeAlignment()
5029 const Type *EltType = isSingleElementStruct(Ty, getContext()); in getParamTypeAlignment()
5032 if ((EltType->isVectorType() && getContext().getTypeSize(EltType) == 128) || in getParamTypeAlignment()
5051 if (isAggregateTypeForABI(Ty) && getContext().getTypeAlign(Ty) >= 128) { in getParamTypeAlignment()
5063 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in isHomogeneousAggregate()
5085 if (isEmptyRecord(getContext(), I.getType(), true)) in isHomogeneousAggregate()
5100 getContext().getAsConstantArrayType(FT)) { in isHomogeneousAggregate()
5105 if (isEmptyRecord(getContext(), FT, true)) in isHomogeneousAggregate()
5109 if (getContext().getLangOpts().CPlusPlus && in isHomogeneousAggregate()
5110 FD->isZeroLengthBitField(getContext())) in isHomogeneousAggregate()
5125 if (getContext().getTypeSize(Base) * Members != in isHomogeneousAggregate()
5126 getContext().getTypeSize(Ty)) in isHomogeneousAggregate()
5150 getContext().getTypeSize(VT) / getContext().getTypeSize(EltTy); in isHomogeneousAggregate()
5151 Base = getContext() in isHomogeneousAggregate()
5158 getContext().getTypeSize(Base) != getContext().getTypeSize(TyPtr)) in isHomogeneousAggregate()
5171 (getContext().getTargetInfo().hasFloat128Type() && in isHomogeneousAggregateBaseType()
5179 if (getContext().getTypeSize(VT) == 128) in isHomogeneousAggregateBaseType()
5190 ((getContext().getTargetInfo().hasFloat128Type() && in isHomogeneousAggregateSmallEnough()
5193 : (getContext().getTypeSize(Base) + 63) / 64; in isHomogeneousAggregateSmallEnough()
5209 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
5227 uint64_t TyAlign = getContext().getTypeAlignInChars(Ty).getQuantity(); in classifyArgumentType()
5243 uint64_t Bits = getContext().getTypeSize(Ty); in classifyArgumentType()
5285 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
5310 uint64_t Bits = getContext().getTypeSize(RetTy); in classifyReturnType()
5336 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
5634 uint64_t Size = getContext().getTypeSize(Ty); in coerceIllegalVector()
5689 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
5690 bool IsEmpty = isEmptyRecord(getContext(), Ty, true); in classifyArgumentType()
5692 if (!getContext().getLangOpts().CPlusPlus || isDarwinPCS()) in classifyArgumentType()
5717 getContext().getTypeUnadjustedAlignInChars(Ty).getQuantity(); in classifyArgumentType()
5718 unsigned BaseAlign = getContext().getTypeAlignInChars(Base).getQuantity(); in classifyArgumentType()
5730 return coerceToIntArray(Ty, getContext(), getVMContext()); in classifyArgumentType()
5734 Alignment = getContext().getTypeUnadjustedAlign(Ty); in classifyArgumentType()
5737 Alignment = std::max(getContext().getTypeAlign(Ty), in classifyArgumentType()
5765 if (RetTy->isVectorType() && getContext().getTypeSize(RetTy) > 128) in classifyReturnType()
5782 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
5783 if (isEmptyRecord(getContext(), RetTy, true) || Size == 0) in classifyReturnType()
5799 return coerceToIntArray(RetTy, getContext(), getVMContext()); in classifyReturnType()
5813 unsigned Alignment = getContext().getTypeAlign(RetTy); in classifyReturnType()
5840 uint64_t Size = getContext().getTypeSize(VT); in isIllegalVectorType()
5877 unsigned VecSize = getContext().getTypeSize(VT); in isHomogeneousAggregateBaseType()
5924 CharUnits TySize = getContext().getTypeSizeInChars(Ty); in EmitAAPCSVAArg()
5925 CharUnits TyAlign = getContext().getTypeUnadjustedAlignInChars(Ty); in EmitAAPCSVAArg()
6026 auto BaseTyInfo = getContext().getTypeInfoInChars(QualType(Base, 0)); in EmitAAPCSVAArg()
6147 if (isEmptyRecord(getContext(), Ty, true)) { in EmitDarwinVAArg()
6155 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitDarwinVAArg()
6175 if (isAggregateTypeForABI(Ty) && getContext().getTypeSize(Ty) > 128) in EmitMSVAArg()
6179 CGF.getContext().getTypeInfoInChars(Ty), in EmitMSVAArg()
6431 uint64_t Size = getContext().getTypeSize(Ty); in coerceIllegalVector()
6453 uint64_t Size = getContext().getTypeSize(VT); in classifyHomogeneousAggregate()
6465 Align = getContext().getTypeUnadjustedAlignInChars(Ty).getQuantity(); in classifyHomogeneousAggregate()
6466 unsigned BaseAlign = getContext().getTypeAlignInChars(Base).getQuantity(); in classifyHomogeneousAggregate()
6510 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
6535 getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(16)) { in classifyArgumentType()
6540 CharUnits::fromQuantity(getContext().getTypeAlign(Ty) / 8), false); in classifyArgumentType()
6551 TyAlign = getContext().getTypeUnadjustedAlignInChars(Ty).getQuantity(); in classifyArgumentType()
6554 TyAlign = getContext().getTypeAlignInChars(Ty).getQuantity(); in classifyArgumentType()
6556 if (getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(64)) { in classifyArgumentType()
6566 return coerceToIntArray(Ty, getContext(), getVMContext()); in classifyArgumentType()
6576 SizeRegs = (getContext().getTypeSize(Ty) + 31) / 32; in classifyArgumentType()
6579 SizeRegs = (getContext().getTypeSize(Ty) + 63) / 64; in classifyArgumentType()
6682 if (getContext().getTypeSize(RetTy) > 128) in classifyReturnType()
6709 if (isEmptyRecord(getContext(), RetTy, false)) in classifyReturnType()
6718 getVMContext(), getContext().getTypeSize(RetTy))); in classifyReturnType()
6721 if (isIntegerLikeType(RetTy, getContext(), getVMContext())) { in classifyReturnType()
6723 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
6737 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
6750 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
6755 return coerceToIntArray(RetTy, getContext(), getVMContext()); in classifyReturnType()
6805 uint64_t Size = getContext().getTypeSize(VT); in isIllegalVectorType()
6818 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in containsAnyFP16Vectors()
6871 unsigned VecSize = getContext().getTypeSize(VT); in isHomogeneousAggregateBaseType()
6898 if (isEmptyRecord(getContext(), Ty, true)) { in EmitVAArg()
6904 CharUnits TySize = getContext().getTypeSizeInChars(Ty); in EmitVAArg()
6905 CharUnits TyAlignForABI = getContext().getTypeUnadjustedAlignInChars(Ty); in EmitVAArg()
7029 ASTContext &Context = getContext(); in isUnsupportedType()
7065 const uint64_t Size = getContext().getTypeSize(Ty); in coerceToIntArrayWithLimit()
7066 const uint64_t Alignment = getContext().getTypeAlign(Ty); in coerceToIntArrayWithLimit()
7077 if (getContext().getLangOpts().OpenMP && in classifyReturnType()
7078 getContext().getLangOpts().OpenMPIsDevice && isUnsupportedType(RetTy)) in classifyReturnType()
7102 if (getContext().getLangOpts().CUDAIsDevice) { in classifyArgumentType()
7115 (!getContext().getTargetInfo().hasInt128Type() && in classifyArgumentType()
7187 MaxThreads = Attr->getMaxThreads()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes()
7196 MinBlocks = Attr->getMinBlocks()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes()
7208 llvm::LLVMContext &Ctx = M->getContext(); in addNVVMMetadata()
7285 auto &Ctx = M.getContext(); in testFPKind()
7352 getContext().getTypeSize(Ty) <= 128); in isVectorArgumentType()
7384 if (isEmptyRecord(getContext(), Base, true)) in GetSingleElementType()
7397 if (getContext().getLangOpts().CPlusPlus && in GetSingleElementType()
7398 FD->isZeroLengthBitField(getContext())) in GetSingleElementType()
7402 isEmptyRecord(getContext(), FD->getType(), true)) in GetSingleElementType()
7434 Ty = getContext().getCanonicalType(Ty); in EmitVAArg()
7435 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
7583 if (isCompoundType(RetTy) || getContext().getTypeSize(RetTy) > 64) in classifyReturnType()
7601 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
7604 getContext().getTypeSize(SingleElementTy) == Size) in classifyArgumentType()
7848 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in HandleAggregates()
7897 uint64_t TySize = getContext().getTypeSize(Ty); in classifyArgumentType()
7898 uint64_t Align = getContext().getTypeAlign(Ty) / 8; in classifyArgumentType()
7933 !getContext().getTargetInfo().hasInt128Type())) in classifyArgumentType()
7951 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in returnAggregateInRegs()
7987 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
8024 !getContext().getTargetInfo().hasInt128Type())) in classifyReturnType()
8059 getContext().getIntWidth(Ty) < SlotSizeInBits) || in EmitVAArg()
8062 Ty = getContext().getIntTypeForBitwidth(SlotSizeInBits, in EmitVAArg()
8066 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
8101 int TySize = getContext().getTypeSize(Ty); in extendType()
8189 if (isAggregateTypeForABI(Ty) && getContext().getTypeSize(Ty) <= 64) in classifyReturnType()
8273 llvm::LLVMContext &Context = F->getContext(); in setTargetAttributes()
8392 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
8407 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
8410 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
8411 unsigned Align = getContext().getTypeAlign(Ty); in classifyArgumentType()
8432 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
8459 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
8482 uint64_t Align = CGF.getContext().getTypeAlign(Ty) / 8; in EmitVAArgFromMemory()
8512 uint64_t Offset = llvm::alignTo(CGF.getContext().getTypeSize(Ty) / 8, 4); in EmitVAArgFromMemory()
8533 uint64_t TyAlign = CGF.getContext().getTypeAlign(Ty) / 8; in EmitVAArgForHexagon()
8545 uint64_t Offset = llvm::alignTo(CGF.getContext().getTypeSize(Ty) / 8, 4); in EmitVAArgForHexagon()
8556 int ArgSize = CGF.getContext().getTypeSize(Ty) / 8; in EmitVAArgForHexagonLinux()
8566 Ty = CGF.getContext().getCanonicalType(Ty); in EmitVAArgForHexagonLinux()
8576 ArgSize = (CGF.getContext().getTypeSize(Ty) <= 32) ? 4 : 8; in EmitVAArgForHexagonLinux()
8577 int ArgAlign = (CGF.getContext().getTypeSize(Ty) <= 32) ? 4 : 8; in EmitVAArgForHexagonLinux()
8746 unsigned Size = getContext().getTypeSize(Ty); in shouldUseInReg()
8774 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectResult()
8799 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
8803 unsigned SizeInRegs = (getContext().getTypeSize(Ty) + 31) / 32; in classifyArgumentType()
8890 uint32_t NumRegs = (getContext().getTypeSize(Base) + 31) / 32; in isHomogeneousAggregateSmallEnough()
8904 unsigned EltSize = getContext().getTypeSize(EltTy); in numRegsForType()
8926 return (getContext().getTypeSize(Ty) + 31) / 32; in numRegsForType()
8956 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
8960 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
8970 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
8998 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyKernelArgumentType()
9003 if (getContext().getLangOpts().HIP) { in classifyKernelArgumentType()
9005 OrigLTy, /*FromAS=*/getContext().getTargetAddressSpace(LangAS::Default), in classifyKernelArgumentType()
9006 /*ToAS=*/getContext().getTargetAddressSpace(LangAS::cuda_device)); in classifyKernelArgumentType()
9015 if (!getContext().getLangOpts().OpenCL && LTy == OrigLTy && in classifyKernelArgumentType()
9018 getContext().getTypeAlignInChars(Ty), in classifyKernelArgumentType()
9019 getContext().getTargetAddressSpace(LangAS::opencl_constant), in classifyKernelArgumentType()
9042 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
9048 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyArgumentType()
9058 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
9173 ->EvaluateKnownConstInt(M.getContext()) in setTargetAttributes()
9176 ->EvaluateKnownConstInt(M.getContext()) in setTargetAttributes()
9203 Attr->getMin()->EvaluateKnownConstInt(M.getContext()).getExtValue(); in setTargetAttributes()
9205 ->EvaluateKnownConstInt(M.getContext()) in setTargetAttributes()
9234 if (M.getContext().getTargetInfo().allowAMDGPUUnsafeFPAtomics()) in setTargetAttributes()
9253 if (CGM.getContext().getTargetNullPointerValue(QT) == 0) in getNullPointer()
9256 auto &Ctx = CGM.getContext(); in getNullPointer()
9270 CGM.getContext().getTargetAddressSpace(LangAS::opencl_global)); in getGlobalVarAddressSpace()
9322 FT = getABIInfo().getContext().adjustFunctionType( in setCUDAKernelCallingConvention()
9519 uint64_t Size = getContext().getTypeSize(Ty); in classifyType()
9579 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
9694 unsigned sz = (getContext().getTypeSize(Ty) + 31) / 32; in updateState()
9737 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectByValue()
9745 getContext().getTypeInfoInChars(Ty), in EmitVAArg()
9766 auto SizeInRegs = llvm::alignTo(getContext().getTypeSize(Ty), 32) / 32; in classifyArgumentType()
9774 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
9804 auto RetSize = llvm::alignTo(getContext().getTypeSize(RetTy), 32) / 32; in classifyReturnType()
9945 CharUnits TypeAlign = getContext().getTypeAlignInChars(Ty); in EmitVAArg()
10099 llvm::LLVMContext &Ctx = CGM.getModule().getContext(); in emitTargetMD()
10188 OS << Field->getBitWidthValue(CGM.getContext()); in extractFieldType()
10562 getContext().getTypeSize(RetTy) > (2 * XLen)) { in computeInfo()
10565 IsRetIndirect = getContext().getTypeSize(EltTy) > FLen; in computeInfo()
10603 uint64_t Size = getContext().getTypeSize(Ty); in detectFPCCEligibleStructHelper()
10632 if (getContext().getTypeSize(EltTy) > FLen) in detectFPCCEligibleStructHelper()
10637 Field2Off = Field1Off + getContext().getTypeSizeInChars(EltTy); in detectFPCCEligibleStructHelper()
10641 if (const ConstantArrayType *ATy = getContext().getAsConstantArrayType(Ty)) { in detectFPCCEligibleStructHelper()
10644 CharUnits EltSize = getContext().getTypeSizeInChars(EltTy); in detectFPCCEligibleStructHelper()
10660 if (isEmptyRecord(getContext(), Ty, true)) in detectFPCCEligibleStructHelper()
10668 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in detectFPCCEligibleStructHelper()
10672 unsigned BitWidth = FD->getBitWidthValue(getContext()); in detectFPCCEligibleStructHelper()
10675 if (getContext().getTypeSize(QTy) > XLen && BitWidth <= XLen) in detectFPCCEligibleStructHelper()
10676 QTy = getContext().getIntTypeForBitwidth(XLen, false); in detectFPCCEligibleStructHelper()
10684 QTy, CurOff + getContext().toCharUnitsFromBits(FieldOffInBits), in detectFPCCEligibleStructHelper()
10799 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
10802 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
10815 if (getContext().getTypeSize(EltTy) <= FLen) { in classifyArgumentType()
10840 uint64_t NeededAlign = getContext().getTypeAlign(Ty); in classifyArgumentType()
10873 (!getContext().getTargetInfo().hasInt128Type() && in classifyArgumentType()
10884 unsigned Alignment = getContext().getTypeAlign(Ty); in classifyArgumentType()
10920 if (isEmptyRecord(getContext(), Ty, true)) { in EmitVAArg()
10926 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
10936 int TySize = getContext().getTypeSize(Ty); in extendType()
10991 uint64_t Size = getContext().getTypeSize(Ty); in classifyReturnType()
11000 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()