Lines Matching full:getcontext
79 return ABIArgInfo::getIndirect(getContext().getTypeAlignInChars(Ty),
85 return ABIArgInfo::getIndirectInReg(getContext().getTypeAlignInChars(Ty),
129 ASTContext &ABIInfo::getContext() const {
130 return CGT.getContext();
266 /// computed with getContext().getTypeInfoInChars(ValueTy).
660 if (isEmptyRecord(getContext(), Ty, true))
665 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext()))
679 if (isEmptyRecord(getContext(), RetTy, true))
684 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext()))
846 return isX86VectorTypeForVectorCall(getContext(), Ty);
998 uint64_t RetWidth = CGF.getContext().getTypeSize(ReturnSlot.getType());
1101 uint64_t Size = getContext().getTypeSize(RetTy);
1136 if (shouldReturnTypeInRegister(RetTy, getContext())) {
1137 uint64_t Size = getContext().getTypeSize(RetTy);
1144 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext()))
1208 if (Align >= 16 && (isSSEVectorType(getContext(), Ty) ||
1209 isRecordWithSSEVectorType(getContext(), Ty)))
1226 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8;
1239 const Type *T = isSingleElementStruct(Ty, getContext());
1260 unsigned Size = getContext().getTypeSize(Ty);
1350 if (isEmptyRecord(getContext(), Ty, true))
1357 unsigned SizeInRegs = (getContext().getTypeSize(Ty) + 31) / 32;
1368 if (getContext().getTypeSize(Ty) <= 4*32 &&
1369 canExpandIndirectArgument(Ty, getContext()))
1382 uint64_t Size = getContext().getTypeSize(Ty);
1463 StackOffset += getContext().getTypeSizeInChars(Type);
1520 CanQualType PtrTy = getContext().getPointerType(FI.getReturnType());
1544 auto TypeInfo = getContext().getTypeInfoInChars(Ty);
1822 return isX86VectorTypeForVectorCall(getContext(), Ty);
2181 uint64_t Size = getContext().getTypeSize(VT);
2236 QualType ET = getContext().getCanonicalType(CT->getElementType());
2238 uint64_t Size = getContext().getTypeSize(Ty);
2244 } else if (ET == getContext().FloatTy) {
2246 } else if (ET == getContext().DoubleTy) {
2248 } else if (ET == getContext().LongDoubleTy) {
2263 uint64_t EB_Imag = (OffsetBase + getContext().getTypeSize(ET)) / 64;
2270 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) {
2273 uint64_t Size = getContext().getTypeSize(Ty);
2284 if (OffsetBase % getContext().getTypeAlign(AT->getElementType()))
2290 uint64_t EltSize = getContext().getTypeSize(AT->getElementType());
2314 uint64_t Size = getContext().getTypeSize(Ty);
2333 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD);
2353 OffsetBase + getContext().toBits(Layout.getBaseClassOffset(Base));
2378 if (Size > 128 && getContext().getTypeSize(i->getType()) != 256) {
2384 if (!BitField && Offset % getContext().getTypeAlign(i->getType())) {
2407 uint64_t Size = i->getBitWidthValue(getContext());
2449 uint64_t Size = getContext().getTypeSize(VecTy);
2482 unsigned Align = std::max(getContext().getTypeAlign(Ty) / 8, 8U);
2506 uint64_t Size = getContext().getTypeSize(Ty);
2523 if (const Type *InnerTy = isSingleElementStruct(Ty, getContext()))
2532 uint64_t Size = getContext().getTypeSize(Ty);
2663 SourceOffset*8+64, getContext()))
2715 SourceOffset*8+64, getContext()))
2743 (unsigned)getContext().getTypeSizeInChars(SourceTy).getQuantity();
2782 Lo = llvm::Type::getDoubleTy(Lo->getContext());
2786 Lo = llvm::Type::getInt64Ty(Lo->getContext());
3110 CharUnits Align = CGF.getContext().getTypeAlignInChars(Ty);
3127 uint64_t SizeInBytes = (CGF.getContext().getTypeSize(Ty) + 7) / 8;
3149 Ty = getContext().getCanonicalType(Ty);
3257 getContext().getTypeInfoInChars(Ty);
3334 CGF.getContext().getTypeInfoInChars(Ty),
3348 TypeInfo Info = getContext().getTypeInfo(Ty);
3350 CharUnits Align = getContext().toCharUnitsFromBits(Info.Align);
3432 CGF.getContext().getTypeInfoInChars(Ty),
3482 bool isI64 = Ty->isIntegerType() && getContext().getTypeSize(Ty) == 64;
3485 bool isF64 = Ty->isFloatingType() && getContext().getTypeSize(Ty) == 64;
3567 auto TypeInfo = CGF.getContext().getTypeInfoInChars(Ty);
3578 CharUnits Align = CGF.getContext().getTypeAlignInChars(Ty);
3602 getContext().getTypeAlignInChars(Ty));
3677 if (getContext().getTypeSize(Ty) <= 256)
3681 if (getContext().getTypeSize(Ty) <= 128)
3720 const Type *T = isSingleElementStruct(I.type, getContext());
3724 (T->isVectorType() && getContext().getTypeSize(T) == 128) ||
3806 if (getContext().getTypeSize(Ty) > 128)
3811 return CharUnits::fromQuantity(getContext().getTypeSize(Ty) == 128 ? 16 : 8);
3817 const Type *EltType = isSingleElementStruct(Ty, getContext());
3821 getContext().getTypeSize(EltType) == 128) ||
3835 if (getContext().getTypeSize(AlignAsType) > 128)
3845 if (isAggregateTypeForABI(Ty) && getContext().getTypeAlign(Ty) >= 128) {
3846 if (HasQPX && getContext().getTypeAlign(Ty) >= 256)
3859 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) {
3877 if (isEmptyRecord(getContext(), I.getType(), true))
3892 getContext().getAsConstantArrayType(FT)) {
3897 if (isEmptyRecord(getContext(), FT, true))
3901 if (getContext().getLangOpts().CPlusPlus &&
3902 FD->isBitField() && FD->getBitWidthValue(getContext()) == 0)
3917 if (getContext().getTypeSize(Base) * Members !=
3918 getContext().getTypeSize(Ty))
3939 getContext().getTypeSize(Base) != getContext().getTypeSize(TyPtr))
3955 if (getContext().getTypeSize(VT) == 128 || IsQPXVectorTy(Ty))
3966 Base->isVectorType() ? 1 : (getContext().getTypeSize(Base) + 63) / 64;
3982 getContext().getTypeSize(Ty);
3996 uint64_t TyAlign = getContext().getTypeAlignInChars(Ty).getQuantity();
4012 uint64_t Bits = getContext().getTypeSize(Ty);
4054 uint64_t Size = getContext().getTypeSize(RetTy);
4075 uint64_t Bits = getContext().getTypeSize(RetTy);
4101 auto TypeInfo = getContext().getTypeInfoInChars(Ty);
4278 uint64_t Size = getContext().getTypeSize(Ty);
4320 if (isEmptyRecord(getContext(), Ty, true)) {
4321 if (!getContext().getLangOpts().CPlusPlus || isDarwinPCS())
4336 uint64_t Size = getContext().getTypeSize(Ty);
4338 if (getContext().getLangOpts().Renderscript) {
4339 return coerceToIntArray(Ty, getContext(), getVMContext());
4341 unsigned Alignment = getContext().getTypeAlign(Ty);
4361 if (RetTy->isVectorType() && getContext().getTypeSize(RetTy) > 128)
4374 if (isEmptyRecord(getContext(), RetTy, true))
4384 uint64_t Size = getContext().getTypeSize(RetTy);
4386 if (getContext().getLangOpts().Renderscript) {
4387 return coerceToIntArray(RetTy, getContext(), getVMContext());
4389 unsigned Alignment = getContext().getTypeAlign(RetTy);
4409 uint64_t Size = getContext().getTypeSize(VT);
4427 unsigned VecSize = getContext().getTypeSize(VT);
4474 auto TyInfo = getContext().getTypeInfoInChars(Ty);
4583 auto BaseTyInfo = getContext().getTypeInfoInChars(QualType(Base, 0));
4705 if (isEmptyRecord(getContext(), Ty, true)) {
4713 auto TyInfo = getContext().getTypeInfoInChars(Ty);
4776 llvm::Triple::Android || getContext().getLangOpts().Renderscript);
4982 uint64_t Size = getContext().getTypeSize(Ty);
5004 if (Ty->isHalfType() && !getContext().getLangOpts().HalfArgsAndReturns) {
5026 if (isEmptyRecord(getContext(), Ty, true))
5054 getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(16)) {
5059 CharUnits::fromQuantity(getContext().getTypeAlign(Ty) / 8), false);
5067 uint64_t TyAlign = getContext().getTypeAlign(Ty) / 8;
5072 if (getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(64)) {
5079 if (getContext().getLangOpts().Renderscript) {
5080 return coerceToIntArray(Ty, getContext(), getVMContext());
5088 if (getContext().getTypeAlign(Ty) <= 32) {
5090 SizeRegs = (getContext().getTypeSize(Ty) + 31) / 32;
5093 SizeRegs = (getContext().getTypeSize(Ty) + 63) / 64;
5193 if (RetTy->isVectorType() && getContext().getTypeSize(RetTy) > 128) {
5200 if (RetTy->isHalfType() && !getContext().getLangOpts().HalfArgsAndReturns) {
5218 if (isEmptyRecord(getContext(), RetTy, false))
5227 getVMContext(), getContext().getTypeSize(RetTy)));
5230 if (isIntegerLikeType(RetTy, getContext(), getVMContext())) {
5232 uint64_t Size = getContext().getTypeSize(RetTy);
5246 if (isEmptyRecord(getContext(), RetTy, true))
5262 uint64_t Size = getContext().getTypeSize(RetTy);
5264 if (getContext().getLangOpts().Renderscript) {
5265 return coerceToIntArray(RetTy, getContext(), getVMContext());
5303 uint64_t Size = getContext().getTypeSize(VT);
5323 unsigned VecSize = getContext().getTypeSize(VT);
5340 if (isEmptyRecord(getContext(), Ty, true)) {
5346 auto TyInfo = getContext().getTypeInfoInChars(Ty);
5495 MaxThreads = Attr->getMaxThreads()->EvaluateKnownConstInt(M.getContext());
5504 MinBlocks = Attr->getMinBlocks()->EvaluateKnownConstInt(M.getContext());
5516 llvm::LLVMContext &Ctx = M->getContext();
5601 getContext().getTypeSize(Ty) <= 128);
5628 if (isEmptyRecord(getContext(), Base, true))
5641 if (getContext().getLangOpts().CPlusPlus &&
5642 FD->isBitField() && FD->getBitWidthValue(getContext()) == 0)
5674 Ty = getContext().getCanonicalType(Ty);
5675 auto TyInfo = getContext().getTypeInfoInChars(Ty);
5824 if (isCompoundType(RetTy) || getContext().getTypeSize(RetTy) > 64)
5842 uint64_t Size = getContext().getTypeSize(Ty);
5845 getContext().getTypeSize(SingleElementTy) == Size)
6036 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD);
6085 uint64_t TySize = getContext().getTypeSize(Ty);
6086 uint64_t Align = getContext().getTypeAlign(Ty) / 8;
6132 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD);
6168 uint64_t Size = getContext().getTypeSize(RetTy);
6227 getContext().getIntWidth(Ty) < SlotSizeInBits) ||
6230 Ty = getContext().getIntTypeForBitwidth(SlotSizeInBits,
6234 auto TyInfo = getContext().getTypeInfoInChars(Ty);
6269 int TySize = getContext().getTypeSize(Ty);
6337 llvm::LLVMContext &Context = F->getContext();
6421 if (isEmptyRecord(getContext(), Ty, true))
6427 uint64_t Size = getContext().getTypeSize(Ty);
6446 if (RetTy->isVectorType() && getContext().getTypeSize(RetTy) > 64)
6458 if (isEmptyRecord(getContext(), RetTy, true))
6463 uint64_t Size = getContext().getTypeSize(RetTy);
6482 getContext().getTypeInfoInChars(Ty),
6677 uint64_t Size = getContext().getTypeSize(Ty);
6733 auto TypeInfo = getContext().getTypeInfoInChars(Ty);
6957 CharUnits TypeAlign = getContext().getTypeAlignInChars(Ty);
7108 llvm::LLVMContext &Ctx = CGM.getModule().getContext();
7137 OS << Field->getBitWidthValue(CGM.getContext());