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()
4089 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4165 CGF.getContext().getTypeInfoInChars(Ty), in EmitMSVAArg()
4193 TypeInfo Info = getContext().getTypeInfo(Ty); in classify()
4195 CharUnits Align = getContext().toCharUnitsFromBits(Info.Align); in classify()
4367 uint64_t Width = getContext().getTypeSize(Ty); in EmitVAArg()
4372 CGF.getContext().getTypeInfoInChars(Ty), in EmitVAArg()
4545 CharUnits TyAlign = getContext().getTypeAlignInChars(Ty); in classifyArgumentType()
4564 if (isRecordWithSIMDVectorType(getContext(), Ty)) in getParamTypeAlignment()
4575 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4643 return CharUnits::fromQuantity(getContext().getTypeSize(Ty) == 128 ? 16 in getParamTypeAlignment()
4649 if (const Type *EltType = isSingleElementStruct(Ty, getContext())) { in getParamTypeAlignment()
4651 if ((EltType->isVectorType() && getContext().getTypeSize(EltType) == 128) || in getParamTypeAlignment()
4666 (Size = getContext().getTypeSize(RetTy)) <= 64) { in classifyReturnType()
4694 auto TI = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4718 bool isI64 = Ty->isIntegerType() && getContext().getTypeSize(Ty) == 64; in EmitVAArg()
4720 bool isF64 = Ty->isFloatingType() && getContext().getTypeSize(Ty) == 64; in EmitVAArg()
4803 auto TypeInfo = CGF.getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4813 CharUnits Align = CGF.getContext().getTypeAlignInChars(Ty); in EmitVAArg()
4837 getContext().getTypeAlignInChars(Ty)); in EmitVAArg()
4913 const Type *T = isSingleElementStruct(I.type, getContext()); in computeInfo()
4916 if ((T->isVectorType() && getContext().getTypeSize(T) == 128) || in computeInfo()
5013 return CharUnits::fromQuantity(getContext().getTypeSize(Ty) == 128 ? 16 : 8); in getParamTypeAlignment()
5015 &getContext().getFloatTypeSemantics(Ty) == in getParamTypeAlignment()
5026 const Type *EltType = isSingleElementStruct(Ty, getContext()); in getParamTypeAlignment()
5029 if ((EltType->isVectorType() && getContext().getTypeSize(EltType) == 128) || in getParamTypeAlignment()
5048 if (isAggregateTypeForABI(Ty) && getContext().getTypeAlign(Ty) >= 128) { in getParamTypeAlignment()
5060 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in isHomogeneousAggregate()
5082 if (isEmptyRecord(getContext(), I.getType(), true)) in isHomogeneousAggregate()
5097 getContext().getAsConstantArrayType(FT)) { in isHomogeneousAggregate()
5102 if (isEmptyRecord(getContext(), FT, true)) in isHomogeneousAggregate()
5106 if (getContext().getLangOpts().CPlusPlus && in isHomogeneousAggregate()
5107 FD->isZeroLengthBitField(getContext())) in isHomogeneousAggregate()
5122 if (getContext().getTypeSize(Base) * Members != in isHomogeneousAggregate()
5123 getContext().getTypeSize(Ty)) in isHomogeneousAggregate()
5147 getContext().getTypeSize(VT) / getContext().getTypeSize(EltTy); in isHomogeneousAggregate()
5148 Base = getContext() in isHomogeneousAggregate()
5155 getContext().getTypeSize(Base) != getContext().getTypeSize(TyPtr)) in isHomogeneousAggregate()
5168 (getContext().getTargetInfo().hasFloat128Type() && in isHomogeneousAggregateBaseType()
5176 if (getContext().getTypeSize(VT) == 128) in isHomogeneousAggregateBaseType()
5187 ((getContext().getTargetInfo().hasFloat128Type() && in isHomogeneousAggregateSmallEnough()
5190 : (getContext().getTypeSize(Base) + 63) / 64; in isHomogeneousAggregateSmallEnough()
5206 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
5224 uint64_t TyAlign = getContext().getTypeAlignInChars(Ty).getQuantity(); in classifyArgumentType()
5240 uint64_t Bits = getContext().getTypeSize(Ty); in classifyArgumentType()
5282 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
5307 uint64_t Bits = getContext().getTypeSize(RetTy); in classifyReturnType()
5333 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
5617 uint64_t Size = getContext().getTypeSize(Ty); in coerceIllegalVector()
5672 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
5673 bool IsEmpty = isEmptyRecord(getContext(), Ty, true); in classifyArgumentType()
5675 if (!getContext().getLangOpts().CPlusPlus || isDarwinPCS()) in classifyArgumentType()
5700 getContext().getTypeUnadjustedAlignInChars(Ty).getQuantity(); in classifyArgumentType()
5701 unsigned BaseAlign = getContext().getTypeAlignInChars(Base).getQuantity(); in classifyArgumentType()
5713 return coerceToIntArray(Ty, getContext(), getVMContext()); in classifyArgumentType()
5717 Alignment = getContext().getTypeUnadjustedAlign(Ty); in classifyArgumentType()
5720 Alignment = std::max(getContext().getTypeAlign(Ty), in classifyArgumentType()
5748 if (RetTy->isVectorType() && getContext().getTypeSize(RetTy) > 128) in classifyReturnType()
5765 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
5766 if (isEmptyRecord(getContext(), RetTy, true) || Size == 0) in classifyReturnType()
5782 return coerceToIntArray(RetTy, getContext(), getVMContext()); in classifyReturnType()
5796 unsigned Alignment = getContext().getTypeAlign(RetTy); in classifyReturnType()
5823 uint64_t Size = getContext().getTypeSize(VT); in isIllegalVectorType()
5860 unsigned VecSize = getContext().getTypeSize(VT); in isHomogeneousAggregateBaseType()
5907 CharUnits TySize = getContext().getTypeSizeInChars(Ty); in EmitAAPCSVAArg()
5908 CharUnits TyAlign = getContext().getTypeUnadjustedAlignInChars(Ty); in EmitAAPCSVAArg()
6009 auto BaseTyInfo = getContext().getTypeInfoInChars(QualType(Base, 0)); in EmitAAPCSVAArg()
6130 if (isEmptyRecord(getContext(), Ty, true)) { in EmitDarwinVAArg()
6138 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitDarwinVAArg()
6158 if (isAggregateTypeForABI(Ty) && getContext().getTypeSize(Ty) > 128) in EmitMSVAArg()
6162 CGF.getContext().getTypeInfoInChars(Ty), in EmitMSVAArg()
6414 uint64_t Size = getContext().getTypeSize(Ty); in coerceIllegalVector()
6436 uint64_t Size = getContext().getTypeSize(VT); in classifyHomogeneousAggregate()
6448 Align = getContext().getTypeUnadjustedAlignInChars(Ty).getQuantity(); in classifyHomogeneousAggregate()
6449 unsigned BaseAlign = getContext().getTypeAlignInChars(Base).getQuantity(); in classifyHomogeneousAggregate()
6493 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
6518 getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(16)) { in classifyArgumentType()
6523 CharUnits::fromQuantity(getContext().getTypeAlign(Ty) / 8), false); in classifyArgumentType()
6534 TyAlign = getContext().getTypeUnadjustedAlignInChars(Ty).getQuantity(); in classifyArgumentType()
6537 TyAlign = getContext().getTypeAlignInChars(Ty).getQuantity(); in classifyArgumentType()
6539 if (getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(64)) { in classifyArgumentType()
6549 return coerceToIntArray(Ty, getContext(), getVMContext()); in classifyArgumentType()
6559 SizeRegs = (getContext().getTypeSize(Ty) + 31) / 32; in classifyArgumentType()
6562 SizeRegs = (getContext().getTypeSize(Ty) + 63) / 64; in classifyArgumentType()
6665 if (getContext().getTypeSize(RetTy) > 128) in classifyReturnType()
6692 if (isEmptyRecord(getContext(), RetTy, false)) in classifyReturnType()
6701 getVMContext(), getContext().getTypeSize(RetTy))); in classifyReturnType()
6704 if (isIntegerLikeType(RetTy, getContext(), getVMContext())) { in classifyReturnType()
6706 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
6720 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
6733 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
6738 return coerceToIntArray(RetTy, getContext(), getVMContext()); in classifyReturnType()
6788 uint64_t Size = getContext().getTypeSize(VT); in isIllegalVectorType()
6801 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in containsAnyFP16Vectors()
6854 unsigned VecSize = getContext().getTypeSize(VT); in isHomogeneousAggregateBaseType()
6881 if (isEmptyRecord(getContext(), Ty, true)) { in EmitVAArg()
6887 CharUnits TySize = getContext().getTypeSizeInChars(Ty); in EmitVAArg()
6888 CharUnits TyAlignForABI = getContext().getTypeUnadjustedAlignInChars(Ty); in EmitVAArg()
7012 ASTContext &Context = getContext(); in isUnsupportedType()
7048 const uint64_t Size = getContext().getTypeSize(Ty); in coerceToIntArrayWithLimit()
7049 const uint64_t Alignment = getContext().getTypeAlign(Ty); in coerceToIntArrayWithLimit()
7060 if (getContext().getLangOpts().OpenMP && in classifyReturnType()
7061 getContext().getLangOpts().OpenMPIsDevice && isUnsupportedType(RetTy)) in classifyReturnType()
7085 if (getContext().getLangOpts().CUDAIsDevice) { in classifyArgumentType()
7098 (!getContext().getTargetInfo().hasInt128Type() && in classifyArgumentType()
7170 MaxThreads = Attr->getMaxThreads()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes()
7179 MinBlocks = Attr->getMinBlocks()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes()
7191 llvm::LLVMContext &Ctx = M->getContext(); in addNVVMMetadata()
7268 auto &Ctx = M.getContext(); in testFPKind()
7335 getContext().getTypeSize(Ty) <= 128); in isVectorArgumentType()
7367 if (isEmptyRecord(getContext(), Base, true)) in GetSingleElementType()
7380 if (getContext().getLangOpts().CPlusPlus && in GetSingleElementType()
7381 FD->isZeroLengthBitField(getContext())) in GetSingleElementType()
7385 isEmptyRecord(getContext(), FD->getType(), true)) in GetSingleElementType()
7417 Ty = getContext().getCanonicalType(Ty); in EmitVAArg()
7418 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
7564 if (isCompoundType(RetTy) || getContext().getTypeSize(RetTy) > 64) in classifyReturnType()
7582 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
7585 getContext().getTypeSize(SingleElementTy) == Size) in classifyArgumentType()
7829 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in HandleAggregates()
7878 uint64_t TySize = getContext().getTypeSize(Ty); in classifyArgumentType()
7879 uint64_t Align = getContext().getTypeAlign(Ty) / 8; in classifyArgumentType()
7914 !getContext().getTargetInfo().hasInt128Type())) in classifyArgumentType()
7932 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in returnAggregateInRegs()
7968 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
8005 !getContext().getTargetInfo().hasInt128Type())) in classifyReturnType()
8040 getContext().getIntWidth(Ty) < SlotSizeInBits) || in EmitVAArg()
8043 Ty = getContext().getIntTypeForBitwidth(SlotSizeInBits, in EmitVAArg()
8047 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
8082 int TySize = getContext().getTypeSize(Ty); in extendType()
8229 llvm::LLVMContext &Context = F->getContext(); in setTargetAttributes()
8348 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
8363 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
8366 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
8367 unsigned Align = getContext().getTypeAlign(Ty); in classifyArgumentType()
8388 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
8415 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
8438 uint64_t Align = CGF.getContext().getTypeAlign(Ty) / 8; in EmitVAArgFromMemory()
8468 uint64_t Offset = llvm::alignTo(CGF.getContext().getTypeSize(Ty) / 8, 4); in EmitVAArgFromMemory()
8488 uint64_t TyAlign = CGF.getContext().getTypeAlign(Ty) / 8; in EmitVAArgForHexagon()
8500 uint64_t Offset = llvm::alignTo(CGF.getContext().getTypeSize(Ty) / 8, 4); in EmitVAArgForHexagon()
8511 int ArgSize = CGF.getContext().getTypeSize(Ty) / 8; in EmitVAArgForHexagonLinux()
8521 Ty = CGF.getContext().getCanonicalType(Ty); in EmitVAArgForHexagonLinux()
8531 ArgSize = (CGF.getContext().getTypeSize(Ty) <= 32) ? 4 : 8; in EmitVAArgForHexagonLinux()
8532 int ArgAlign = (CGF.getContext().getTypeSize(Ty) <= 32) ? 4 : 8; in EmitVAArgForHexagonLinux()
8700 unsigned Size = getContext().getTypeSize(Ty); in shouldUseInReg()
8728 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectResult()
8753 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
8757 unsigned SizeInRegs = (getContext().getTypeSize(Ty) + 31) / 32; in classifyArgumentType()
8844 uint32_t NumRegs = (getContext().getTypeSize(Base) + 31) / 32; in isHomogeneousAggregateSmallEnough()
8858 unsigned EltSize = getContext().getTypeSize(EltTy); in numRegsForType()
8880 return (getContext().getTypeSize(Ty) + 31) / 32; in numRegsForType()
8910 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
8914 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
8924 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
8952 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyKernelArgumentType()
8957 if (getContext().getLangOpts().HIP) { in classifyKernelArgumentType()
8959 OrigLTy, /*FromAS=*/getContext().getTargetAddressSpace(LangAS::Default), in classifyKernelArgumentType()
8960 /*ToAS=*/getContext().getTargetAddressSpace(LangAS::cuda_device)); in classifyKernelArgumentType()
8969 if (!getContext().getLangOpts().OpenCL && LTy == OrigLTy && in classifyKernelArgumentType()
8972 getContext().getTypeAlignInChars(Ty), in classifyKernelArgumentType()
8973 getContext().getTargetAddressSpace(LangAS::opencl_constant), in classifyKernelArgumentType()
8996 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
9002 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyArgumentType()
9012 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
9127 ->EvaluateKnownConstInt(M.getContext()) in setTargetAttributes()
9130 ->EvaluateKnownConstInt(M.getContext()) in setTargetAttributes()
9157 Attr->getMin()->EvaluateKnownConstInt(M.getContext()).getExtValue(); in setTargetAttributes()
9159 ->EvaluateKnownConstInt(M.getContext()) in setTargetAttributes()
9188 if (M.getContext().getTargetInfo().allowAMDGPUUnsafeFPAtomics()) in setTargetAttributes()
9207 if (CGM.getContext().getTargetNullPointerValue(QT) == 0) in getNullPointer()
9210 auto &Ctx = CGM.getContext(); in getNullPointer()
9224 CGM.getContext().getTargetAddressSpace(LangAS::opencl_global)); in getGlobalVarAddressSpace()
9276 FT = getABIInfo().getContext().adjustFunctionType( in setCUDAKernelCallingConvention()
9473 uint64_t Size = getContext().getTypeSize(Ty); in classifyType()
9533 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
9648 unsigned sz = (getContext().getTypeSize(Ty) + 31) / 32; in updateState()
9691 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectByValue()
9699 getContext().getTypeInfoInChars(Ty), in EmitVAArg()
9720 auto SizeInRegs = llvm::alignTo(getContext().getTypeSize(Ty), 32) / 32; in classifyArgumentType()
9728 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
9758 auto RetSize = llvm::alignTo(getContext().getTypeSize(RetTy), 32) / 32; in classifyReturnType()
9899 CharUnits TypeAlign = getContext().getTypeAlignInChars(Ty); in EmitVAArg()
10053 llvm::LLVMContext &Ctx = CGM.getModule().getContext(); in emitTargetMD()
10142 OS << Field->getBitWidthValue(CGM.getContext()); in extractFieldType()
10516 getContext().getTypeSize(RetTy) > (2 * XLen)) { in computeInfo()
10519 IsRetIndirect = getContext().getTypeSize(EltTy) > FLen; in computeInfo()
10557 uint64_t Size = getContext().getTypeSize(Ty); in detectFPCCEligibleStructHelper()
10586 if (getContext().getTypeSize(EltTy) > FLen) in detectFPCCEligibleStructHelper()
10591 Field2Off = Field1Off + getContext().getTypeSizeInChars(EltTy); in detectFPCCEligibleStructHelper()
10595 if (const ConstantArrayType *ATy = getContext().getAsConstantArrayType(Ty)) { in detectFPCCEligibleStructHelper()
10598 CharUnits EltSize = getContext().getTypeSizeInChars(EltTy); in detectFPCCEligibleStructHelper()
10614 if (isEmptyRecord(getContext(), Ty, true)) in detectFPCCEligibleStructHelper()
10622 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in detectFPCCEligibleStructHelper()
10626 unsigned BitWidth = FD->getBitWidthValue(getContext()); in detectFPCCEligibleStructHelper()
10629 if (getContext().getTypeSize(QTy) > XLen && BitWidth <= XLen) in detectFPCCEligibleStructHelper()
10630 QTy = getContext().getIntTypeForBitwidth(XLen, false); in detectFPCCEligibleStructHelper()
10638 QTy, CurOff + getContext().toCharUnitsFromBits(FieldOffInBits), in detectFPCCEligibleStructHelper()
10753 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
10756 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
10769 if (getContext().getTypeSize(EltTy) <= FLen) { in classifyArgumentType()
10794 uint64_t NeededAlign = getContext().getTypeAlign(Ty); in classifyArgumentType()
10827 (!getContext().getTargetInfo().hasInt128Type() && in classifyArgumentType()
10838 unsigned Alignment = getContext().getTypeAlign(Ty); in classifyArgumentType()
10874 if (isEmptyRecord(getContext(), Ty, true)) { in EmitVAArg()
10880 auto TInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
10890 int TySize = getContext().getTypeSize(Ty); in extendType()
10945 uint64_t Size = getContext().getTypeSize(Ty); in classifyReturnType()
10954 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()