Lines Matching refs:getContext

83   return ABIArgInfo::getIndirect(getContext().getTypeAlignInChars(Ty),  in getNaturalAlignIndirect()
89 return ABIArgInfo::getIndirectInReg(getContext().getTypeAlignInChars(Ty), in getNaturalAlignIndirectInReg()
190 ASTContext &ABIInfo::getContext() const { in getContext() function in ABIInfo
191 return CGT.getContext(); in getContext()
624 auto TyInfo = CGF.getContext().getTypeInfoInChars(Ty); in EmitVAArgInstr()
798 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
803 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyArgumentType()
817 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
822 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
834 getContext().getTypeInfoInChars(Ty), in EmitVAArg()
1020 return isX86VectorTypeForVectorCall(getContext(), Ty); in isHomogeneousAggregateBaseType()
1202 uint64_t RetWidth = CGF.getContext().getTypeSize(ReturnSlot.getType()); in addReturnRegisterOutputs()
1351 if (!addBaseAndFieldSizes(getContext(), CXXRD, Size)) in canExpandIndirectArgument()
1354 if (!addFieldSizes(getContext(), RD, Size)) in canExpandIndirectArgument()
1359 return Size == getContext().getTypeSize(Ty); in canExpandIndirectArgument()
1390 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
1424 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
1429 if (shouldReturnTypeInRegister(RetTy, getContext())) { in classifyReturnType()
1430 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
1437 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
1501 if (Align >= 16 && (isSSEVectorType(getContext(), Ty) || in getTypeStackAlignInBytes()
1502 isRecordWithSSEVectorType(getContext(), Ty))) in getTypeStackAlignInBytes()
1520 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectResult()
1533 const Type *T = isSingleElementStruct(Ty, getContext()); in classify()
1552 unsigned Size = getContext().getTypeSize(Ty); in updateFreeRegs()
1597 if (getContext().getTypeSize(Ty) <= 32 && State.FreeRegs) in shouldAggregateUseDirect()
1616 if (getContext().getTypeSize(Ty) > 32) in shouldPrimitiveUseInReg()
1667 if (!IsWin32StructABI && isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
1675 unsigned SizeInRegs = (getContext().getTypeSize(Ty) + 31) / 32; in classifyArgumentType()
1691 if (getContext().getTypeSize(Ty) <= 4 * 32 && in classifyArgumentType()
1706 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
1848 StackOffset += getContext().getTypeSizeInChars(Type); in addFieldToArgStruct()
1909 CanQualType PtrTy = getContext().getPointerType(FI.getReturnType()); in rewriteWithInAlloca()
1933 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
2165 if (getContext().getLangOpts().getClangABICompat() <= in classifyIntegerMMXAsSSE()
2235 return isX86VectorTypeForVectorCall(getContext(), Ty); in isHomogeneousAggregateBaseType()
2626 uint64_t Size = getContext().getTypeSize(VT); in classify()
2686 QualType ET = getContext().getCanonicalType(CT->getElementType()); in classify()
2688 uint64_t Size = getContext().getTypeSize(Ty); in classify()
2694 } else if (ET == getContext().FloatTy) { in classify()
2696 } else if (ET == getContext().DoubleTy) { in classify()
2698 } else if (ET == getContext().LongDoubleTy) { in classify()
2713 uint64_t EB_Imag = (OffsetBase + getContext().getTypeSize(ET)) / 64; in classify()
2720 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in classify()
2723 uint64_t Size = getContext().getTypeSize(Ty); in classify()
2734 if (OffsetBase % getContext().getTypeAlign(AT->getElementType())) in classify()
2740 uint64_t EltSize = getContext().getTypeSize(AT->getElementType()); in classify()
2766 uint64_t Size = getContext().getTypeSize(Ty); in classify()
2785 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in classify()
2805 OffsetBase + getContext().toBits(Layout.getBaseClassOffset(Base)); in classify()
2834 if (Size > 128 && (Size != getContext().getTypeSize(i->getType()) || in classify()
2841 if (!BitField && Offset % getContext().getTypeAlign(i->getType())) { in classify()
2861 uint64_t Size = i->getBitWidthValue(getContext()); in classify()
2903 uint64_t Size = getContext().getTypeSize(VecTy); in IsIllegalVectorType()
2936 unsigned Align = std::max(getContext().getTypeAlign(Ty) / 8, 8U); in getIndirectResult()
2960 uint64_t Size = getContext().getTypeSize(Ty); in getIndirectResult()
2977 if (const Type *InnerTy = isSingleElementStruct(Ty, getContext())) in GetByteVectorType()
2986 uint64_t Size = getContext().getTypeSize(Ty); in GetByteVectorType()
3117 SourceOffset*8+64, getContext())) in GetSSETypeAtOffset()
3169 SourceOffset*8+64, getContext())) in GetINTEGERTypeAtOffset()
3197 (unsigned)getContext().getTypeSizeInChars(SourceTy).getQuantity(); in GetINTEGERTypeAtOffset()
3236 Lo = llvm::Type::getDoubleTy(Lo->getContext()); in GetX86_64ByValArgumentPair()
3240 Lo = llvm::Type::getInt64Ty(Lo->getContext()); in GetX86_64ByValArgumentPair()
3601 if (getContext().getCanonicalType(CT->getElementType()) == in computeInfo()
3602 getContext().LongDoubleTy) in computeInfo()
3655 CharUnits Align = CGF.getContext().getTypeAlignInChars(Ty); in EmitX86_64VAArgFromMemory()
3672 uint64_t SizeInBytes = (CGF.getContext().getTypeSize(Ty) + 7) / 8; in EmitX86_64VAArgFromMemory()
3694 Ty = getContext().getCanonicalType(Ty); in EmitVAArg()
3804 getContext().getTypeInfoInChars(Ty); in EmitVAArg()
3882 CGF.getContext().getTypeInfoInChars(Ty), in EmitMSVAArg()
3912 TypeInfo Info = getContext().getTypeInfo(Ty); in classify()
3914 CharUnits Align = getContext().toCharUnitsFromBits(Info.Align); in classify()
4080 uint64_t Width = getContext().getTypeSize(Ty); in EmitVAArg()
4085 CGF.getContext().getTypeInfoInChars(Ty), in EmitVAArg()
4127 return CharUnits::fromQuantity(getContext().getTypeSize(Ty) == 128 ? 16 in getParamTypeAlignment()
4133 if (const Type *EltType = isSingleElementStruct(Ty, getContext())) { in getParamTypeAlignment()
4135 if ((EltType->isVectorType() && getContext().getTypeSize(EltType) == 128) || in getParamTypeAlignment()
4150 auto TI = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4174 bool isI64 = Ty->isIntegerType() && getContext().getTypeSize(Ty) == 64; in EmitVAArg()
4177 bool isF64 = Ty->isFloatingType() && getContext().getTypeSize(Ty) == 64; in EmitVAArg()
4261 auto TypeInfo = CGF.getContext().getTypeInfoInChars(Ty); in EmitVAArg()
4272 CharUnits Align = CGF.getContext().getTypeAlignInChars(Ty); in EmitVAArg()
4296 getContext().getTypeAlignInChars(Ty)); in EmitVAArg()
4372 if (getContext().getTypeSize(Ty) <= 256) in IsQPXVectorTy()
4376 if (getContext().getTypeSize(Ty) <= 128) in IsQPXVectorTy()
4417 const Type *T = isSingleElementStruct(I.type, getContext()); in computeInfo()
4421 (T->isVectorType() && getContext().getTypeSize(T) == 128) || in computeInfo()
4514 if (getContext().getTypeSize(Ty) > 128) in getParamTypeAlignment()
4519 return CharUnits::fromQuantity(getContext().getTypeSize(Ty) == 128 ? 16 : 8); in getParamTypeAlignment()
4525 const Type *EltType = isSingleElementStruct(Ty, getContext()); in getParamTypeAlignment()
4529 getContext().getTypeSize(EltType) == 128) || in getParamTypeAlignment()
4543 if (getContext().getTypeSize(AlignAsType) > 128) in getParamTypeAlignment()
4553 if (isAggregateTypeForABI(Ty) && getContext().getTypeAlign(Ty) >= 128) { in getParamTypeAlignment()
4554 if (HasQPX && getContext().getTypeAlign(Ty) >= 256) in getParamTypeAlignment()
4567 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) { in isHomogeneousAggregate()
4585 if (isEmptyRecord(getContext(), I.getType(), true)) in isHomogeneousAggregate()
4600 getContext().getAsConstantArrayType(FT)) { in isHomogeneousAggregate()
4605 if (isEmptyRecord(getContext(), FT, true)) in isHomogeneousAggregate()
4609 if (getContext().getLangOpts().CPlusPlus && in isHomogeneousAggregate()
4610 FD->isZeroLengthBitField(getContext())) in isHomogeneousAggregate()
4625 if (getContext().getTypeSize(Base) * Members != in isHomogeneousAggregate()
4626 getContext().getTypeSize(Ty)) in isHomogeneousAggregate()
4650 getContext().getTypeSize(VT) / getContext().getTypeSize(EltTy); in isHomogeneousAggregate()
4651 Base = getContext() in isHomogeneousAggregate()
4658 getContext().getTypeSize(Base) != getContext().getTypeSize(TyPtr)) in isHomogeneousAggregate()
4671 (getContext().getTargetInfo().hasFloat128Type() && in isHomogeneousAggregateBaseType()
4679 if (getContext().getTypeSize(VT) == 128 || IsQPXVectorTy(Ty)) in isHomogeneousAggregateBaseType()
4690 ((getContext().getTargetInfo().hasFloat128Type() && in isHomogeneousAggregateSmallEnough()
4693 : (getContext().getTypeSize(Base) + 63) / 64; in isHomogeneousAggregateSmallEnough()
4709 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
4723 uint64_t TyAlign = getContext().getTypeAlignInChars(Ty).getQuantity(); in classifyArgumentType()
4739 uint64_t Bits = getContext().getTypeSize(Ty); in classifyArgumentType()
4781 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
4802 uint64_t Bits = getContext().getTypeSize(RetTy); in classifyReturnType()
4828 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
5080 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
5122 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
5123 bool IsEmpty = isEmptyRecord(getContext(), Ty, true); in classifyArgumentType()
5125 if (!getContext().getLangOpts().CPlusPlus || isDarwinPCS()) in classifyArgumentType()
5148 return coerceToIntArray(Ty, getContext(), getVMContext()); in classifyArgumentType()
5152 Alignment = getContext().getTypeUnadjustedAlign(Ty); in classifyArgumentType()
5155 Alignment = getContext().getTypeAlign(Ty); in classifyArgumentType()
5176 if (RetTy->isVectorType() && getContext().getTypeSize(RetTy) > 128) in classifyReturnType()
5189 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
5190 if (isEmptyRecord(getContext(), RetTy, true) || Size == 0) in classifyReturnType()
5204 return coerceToIntArray(RetTy, getContext(), getVMContext()); in classifyReturnType()
5206 unsigned Alignment = getContext().getTypeAlign(RetTy); in classifyReturnType()
5226 uint64_t Size = getContext().getTypeSize(VT); in isIllegalVectorType()
5255 unsigned VecSize = getContext().getTypeSize(VT); in isHomogeneousAggregateBaseType()
5302 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitAAPCSVAArg()
5411 auto BaseTyInfo = getContext().getTypeInfoInChars(QualType(Base, 0)); in EmitAAPCSVAArg()
5533 if (isEmptyRecord(getContext(), Ty, true)) { in EmitDarwinVAArg()
5541 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitDarwinVAArg()
5559 CGF.getContext().getTypeInfoInChars(Ty), in EmitMSVAArg()
5797 uint64_t Size = getContext().getTypeSize(Ty); in coerceIllegalVector()
5821 uint64_t Size = getContext().getTypeSize(VT); in classifyHomogeneousAggregate()
5852 !getContext().getLangOpts().NativeHalfArgsAndReturns) { in classifyArgumentType()
5874 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
5899 getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(16)) { in classifyArgumentType()
5904 CharUnits::fromQuantity(getContext().getTypeAlign(Ty) / 8), false); in classifyArgumentType()
5915 TyAlign = getContext().getTypeUnadjustedAlignInChars(Ty).getQuantity(); in classifyArgumentType()
5918 TyAlign = getContext().getTypeAlignInChars(Ty).getQuantity(); in classifyArgumentType()
5920 if (getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(64)) { in classifyArgumentType()
5930 return coerceToIntArray(Ty, getContext(), getVMContext()); in classifyArgumentType()
5940 SizeRegs = (getContext().getTypeSize(Ty) + 31) / 32; in classifyArgumentType()
5943 SizeRegs = (getContext().getTypeSize(Ty) + 63) / 64; in classifyArgumentType()
6044 if (getContext().getTypeSize(RetTy) > 128) in classifyReturnType()
6057 !getContext().getLangOpts().NativeHalfArgsAndReturns) { in classifyReturnType()
6075 if (isEmptyRecord(getContext(), RetTy, false)) in classifyReturnType()
6084 getVMContext(), getContext().getTypeSize(RetTy))); in classifyReturnType()
6087 if (isIntegerLikeType(RetTy, getContext(), getVMContext())) { in classifyReturnType()
6089 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
6103 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
6116 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
6121 return coerceToIntArray(RetTy, getContext(), getVMContext()); in classifyReturnType()
6166 uint64_t Size = getContext().getTypeSize(VT); in isIllegalVectorType()
6200 unsigned VecSize = getContext().getTypeSize(VT); in isHomogeneousAggregateBaseType()
6217 if (isEmptyRecord(getContext(), Ty, true)) { in EmitVAArg()
6223 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
6375 MaxThreads = Attr->getMaxThreads()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes()
6384 MinBlocks = Attr->getMinBlocks()->EvaluateKnownConstInt(M.getContext()); in setTargetAttributes()
6396 llvm::LLVMContext &Ctx = M->getContext(); in addNVVMMetadata()
6493 getContext().getTypeSize(Ty) <= 128); in isVectorArgumentType()
6520 if (isEmptyRecord(getContext(), Base, true)) in GetSingleElementType()
6533 if (getContext().getLangOpts().CPlusPlus && in GetSingleElementType()
6534 FD->isZeroLengthBitField(getContext())) in GetSingleElementType()
6566 Ty = getContext().getCanonicalType(Ty); in EmitVAArg()
6567 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
6716 if (isCompoundType(RetTy) || getContext().getTypeSize(RetTy) > 64) in classifyReturnType()
6734 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
6737 getContext().getTypeSize(SingleElementTy) == Size) in classifyArgumentType()
6942 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in HandleAggregates()
6991 uint64_t TySize = getContext().getTypeSize(Ty); in classifyArgumentType()
6992 uint64_t Align = getContext().getTypeAlign(Ty) / 8; in classifyArgumentType()
7038 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD); in returnAggregateInRegs()
7074 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
7139 getContext().getIntWidth(Ty) < SlotSizeInBits) || in EmitVAArg()
7142 Ty = getContext().getIntTypeForBitwidth(SlotSizeInBits, in EmitVAArg()
7146 auto TyInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
7181 int TySize = getContext().getTypeSize(Ty); in extendType()
7278 llvm::LLVMContext &Context = F->getContext(); in setTargetAttributes()
7365 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
7368 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
7387 if (RetTy->isVectorType() && getContext().getTypeSize(RetTy) > 64) in classifyReturnType()
7399 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
7404 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
7423 getContext().getTypeInfoInChars(Ty), in EmitVAArg()
7461 unsigned Size = getContext().getTypeSize(Ty); in shouldUseInReg()
7489 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectResult()
7514 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
7518 unsigned SizeInRegs = (getContext().getTypeSize(Ty) + 31) / 32; in classifyArgumentType()
7587 uint32_t NumRegs = (getContext().getTypeSize(Base) + 31) / 32; in isHomogeneousAggregateSmallEnough()
7601 unsigned EltSize = getContext().getTypeSize(EltTy); in numRegsForType()
7623 return (getContext().getTypeSize(Ty) + 31) / 32; in numRegsForType()
7648 if (isEmptyRecord(getContext(), RetTy, true)) in classifyReturnType()
7652 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext())) in classifyReturnType()
7662 uint64_t Size = getContext().getTypeSize(RetTy); in classifyReturnType()
7691 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyKernelArgumentType()
7713 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
7719 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext())) in classifyArgumentType()
7729 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
7867 if (CGM.getContext().getTargetNullPointerValue(QT) == 0) in getNullPointer()
7870 auto &Ctx = CGM.getContext(); in getNullPointer()
7884 CGM.getContext().getTargetAddressSpace(LangAS::opencl_global)); in getGlobalVarAddressSpace()
7926 FT = getABIInfo().getContext().adjustFunctionType( in setCUDAKernelCallingConvention()
8123 uint64_t Size = getContext().getTypeSize(Ty); in classifyType()
8179 auto TypeInfo = getContext().getTypeInfoInChars(Ty); in EmitVAArg()
8294 unsigned sz = (getContext().getTypeSize(Ty) + 31) / 32; in updateState()
8337 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8; in getIndirectByValue()
8345 getContext().getTypeInfoInChars(Ty), in EmitVAArg()
8366 auto SizeInRegs = llvm::alignTo(getContext().getTypeSize(Ty), 32) / 32; in classifyArgumentType()
8374 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
8400 auto RetSize = llvm::alignTo(getContext().getTypeSize(RetTy), 32) / 32; in classifyReturnType()
8537 CharUnits TypeAlign = getContext().getTypeAlignInChars(Ty); in EmitVAArg()
8689 llvm::LLVMContext &Ctx = CGM.getModule().getContext(); in emitTargetMD()
8744 OS << Field->getBitWidthValue(CGM.getContext()); in extractFieldType()
9095 getContext().getTypeSize(RetTy) > (2 * XLen); in computeInfo()
9128 if (isEmptyRecord(getContext(), Ty, true)) in classifyArgumentType()
9131 uint64_t Size = getContext().getTypeSize(Ty); in classifyArgumentType()
9132 uint64_t NeededAlign = getContext().getTypeAlign(Ty); in classifyArgumentType()
9167 unsigned Alignment = getContext().getTypeAlign(Ty); in classifyArgumentType()
9201 if (isEmptyRecord(getContext(), Ty, true)) { in EmitVAArg()
9208 getContext().getTypeInfoInChars(Ty); in EmitVAArg()
9218 int TySize = getContext().getTypeSize(Ty); in extendType()