Lines Matching defs:getContext

80   return ABIArgInfo::getIndirect(getContext().getTypeAlignInChars(Ty),
86 return ABIArgInfo::getIndirectInReg(getContext().getTypeAlignInChars(Ty),
170 ASTContext &ABIInfo::getContext() const {
171 return CGT.getContext();
188 getContext().getLangOpts().RenderScript;
317 /// computed with getContext().getTypeInfoInChars(ValueTy).
559 auto TyInfo = CGF.getContext().getTypeInfoInChars(Ty);
697 if (isEmptyRecord(getContext(), Ty, true))
702 if (const Type *SeltTy = isSingleElementStruct(Ty, getContext()))
716 if (isEmptyRecord(getContext(), RetTy, true))
721 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext()))
733 getContext().getTypeInfoInChars(Ty),
897 return isX86VectorTypeForVectorCall(getContext(), Ty);
1072 uint64_t RetWidth = CGF.getContext().getTypeSize(ReturnSlot.getType());
1188 if (!isEmptyRecord(getContext(), Base.getType(), /*AllowArrays=*/true))
1200 if (!is32Or64BitBasicType(FD->getType(), getContext()))
1209 Size += getContext().getTypeSize(FD->getType());
1213 return Size == getContext().getTypeSize(Ty);
1243 uint64_t Size = getContext().getTypeSize(RetTy);
1277 if (isEmptyRecord(getContext(), RetTy, true))
1282 if (shouldReturnTypeInRegister(RetTy, getContext())) {
1283 uint64_t Size = getContext().getTypeSize(RetTy);
1290 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext()))
1354 if (Align >= 16 && (isSSEVectorType(getContext(), Ty) ||
1355 isRecordWithSSEVectorType(getContext(), Ty)))
1373 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8;
1386 const Type *T = isSingleElementStruct(Ty, getContext());
1405 unsigned Size = getContext().getTypeSize(Ty);
1449 if (getContext().getTypeSize(Ty) <= 32 && State.FreeRegs)
1467 if (getContext().getTypeSize(Ty) > 32)
1517 if (!IsWin32StructABI && isEmptyRecord(getContext(), Ty, true))
1525 unsigned SizeInRegs = (getContext().getTypeSize(Ty) + 31) / 32;
1541 if (getContext().getTypeSize(Ty) <= 4 * 32 &&
1555 uint64_t Size = getContext().getTypeSize(Ty);
1637 StackOffset += getContext().getTypeSizeInChars(Type);
1698 CanQualType PtrTy = getContext().getPointerType(FI.getReturnType());
1722 auto TypeInfo = getContext().getTypeInfoInChars(Ty);
2021 return isX86VectorTypeForVectorCall(getContext(), Ty);
2397 uint64_t Size = getContext().getTypeSize(VT);
2457 QualType ET = getContext().getCanonicalType(CT->getElementType());
2459 uint64_t Size = getContext().getTypeSize(Ty);
2465 } else if (ET == getContext().FloatTy) {
2467 } else if (ET == getContext().DoubleTy) {
2469 } else if (ET == getContext().LongDoubleTy) {
2484 uint64_t EB_Imag = (OffsetBase + getContext().getTypeSize(ET)) / 64;
2491 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) {
2494 uint64_t Size = getContext().getTypeSize(Ty);
2505 if (OffsetBase % getContext().getTypeAlign(AT->getElementType()))
2511 uint64_t EltSize = getContext().getTypeSize(AT->getElementType());
2535 uint64_t Size = getContext().getTypeSize(Ty);
2554 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD);
2574 OffsetBase + getContext().toBits(Layout.getBaseClassOffset(Base));
2599 if (Size > 128 && getContext().getTypeSize(i->getType()) != 256) {
2605 if (!BitField && Offset % getContext().getTypeAlign(i->getType())) {
2628 uint64_t Size = i->getBitWidthValue(getContext());
2670 uint64_t Size = getContext().getTypeSize(VecTy);
2703 unsigned Align = std::max(getContext().getTypeAlign(Ty) / 8, 8U);
2727 uint64_t Size = getContext().getTypeSize(Ty);
2744 if (const Type *InnerTy = isSingleElementStruct(Ty, getContext()))
2753 uint64_t Size = getContext().getTypeSize(Ty);
2884 SourceOffset*8+64, getContext()))
2936 SourceOffset*8+64, getContext()))
2964 (unsigned)getContext().getTypeSizeInChars(SourceTy).getQuantity();
3003 Lo = llvm::Type::getDoubleTy(Lo->getContext());
3007 Lo = llvm::Type::getInt64Ty(Lo->getContext());
3331 CharUnits Align = CGF.getContext().getTypeAlignInChars(Ty);
3348 uint64_t SizeInBytes = (CGF.getContext().getTypeSize(Ty) + 7) / 8;
3370 Ty = getContext().getCanonicalType(Ty);
3478 getContext().getTypeInfoInChars(Ty);
3555 CGF.getContext().getTypeInfoInChars(Ty),
3569 TypeInfo Info = getContext().getTypeInfo(Ty);
3571 CharUnits Align = getContext().toCharUnitsFromBits(Info.Align);
3653 CGF.getContext().getTypeInfoInChars(Ty),
3706 bool isI64 = Ty->isIntegerType() && getContext().getTypeSize(Ty) == 64;
3709 bool isF64 = Ty->isFloatingType() && getContext().getTypeSize(Ty) == 64;
3793 auto TypeInfo = CGF.getContext().getTypeInfoInChars(Ty);
3804 CharUnits Align = CGF.getContext().getTypeAlignInChars(Ty);
3828 getContext().getTypeAlignInChars(Ty));
3903 if (getContext().getTypeSize(Ty) <= 256)
3907 if (getContext().getTypeSize(Ty) <= 128)
3946 const Type *T = isSingleElementStruct(I.type, getContext());
3950 (T->isVectorType() && getContext().getTypeSize(T) == 128) ||
4032 if (getContext().getTypeSize(Ty) > 128)
4037 return CharUnits::fromQuantity(getContext().getTypeSize(Ty) == 128 ? 16 : 8);
4043 const Type *EltType = isSingleElementStruct(Ty, getContext());
4047 getContext().getTypeSize(EltType) == 128) ||
4061 if (getContext().getTypeSize(AlignAsType) > 128)
4071 if (isAggregateTypeForABI(Ty) && getContext().getTypeAlign(Ty) >= 128) {
4072 if (HasQPX && getContext().getTypeAlign(Ty) >= 256)
4085 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) {
4103 if (isEmptyRecord(getContext(), I.getType(), true))
4118 getContext().getAsConstantArrayType(FT)) {
4123 if (isEmptyRecord(getContext(), FT, true))
4127 if (getContext().getLangOpts().CPlusPlus &&
4128 FD->isBitField() && FD->getBitWidthValue(getContext()) == 0)
4143 if (getContext().getTypeSize(Base) * Members !=
4144 getContext().getTypeSize(Ty))
4168 getContext().getTypeSize(VT) / getContext().getTypeSize(EltTy);
4169 Base = getContext()
4176 getContext().getTypeSize(Base) != getContext().getTypeSize(TyPtr))
4192 if (getContext().getTypeSize(VT) == 128 || IsQPXVectorTy(Ty))
4203 Base->isVectorType() ? 1 : (getContext().getTypeSize(Base) + 63) / 64;
4219 uint64_t Size = getContext().getTypeSize(Ty);
4233 uint64_t TyAlign = getContext().getTypeAlignInChars(Ty).getQuantity();
4249 uint64_t Bits = getContext().getTypeSize(Ty);
4291 uint64_t Size = getContext().getTypeSize(RetTy);
4312 uint64_t Bits = getContext().getTypeSize(RetTy);
4338 auto TypeInfo = getContext().getTypeInfoInChars(Ty);
4522 uint64_t Size = getContext().getTypeSize(Ty);
4564 if (isEmptyRecord(getContext(), Ty, true)) {
4565 if (!getContext().getLangOpts().CPlusPlus || isDarwinPCS())
4580 uint64_t Size = getContext().getTypeSize(Ty);
4585 return coerceToIntArray(Ty, getContext(), getVMContext());
4587 unsigned Alignment = getContext().getTypeAlign(Ty);
4607 if (RetTy->isVectorType() && getContext().getTypeSize(RetTy) > 128)
4620 if (isEmptyRecord(getContext(), RetTy, true))
4630 uint64_t Size = getContext().getTypeSize(RetTy);
4635 return coerceToIntArray(RetTy, getContext(), getVMContext());
4637 unsigned Alignment = getContext().getTypeAlign(RetTy);
4657 uint64_t Size = getContext().getTypeSize(VT);
4675 unsigned VecSize = getContext().getTypeSize(VT);
4722 auto TyInfo = getContext().getTypeInfoInChars(Ty);
4831 auto BaseTyInfo = getContext().getTypeInfoInChars(QualType(Base, 0));
4953 if (isEmptyRecord(getContext(), Ty, true)) {
4961 auto TyInfo = getContext().getTypeInfoInChars(Ty);
5230 uint64_t Size = getContext().getTypeSize(Ty);
5252 if (Ty->isHalfType() && !getContext().getLangOpts().NativeHalfArgsAndReturns) {
5274 if (isEmptyRecord(getContext(), Ty, true))
5302 getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(16)) {
5307 CharUnits::fromQuantity(getContext().getTypeAlign(Ty) / 8), false);
5315 uint64_t TyAlign = getContext().getTypeAlign(Ty) / 8;
5320 if (getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(64)) {
5330 return coerceToIntArray(Ty, getContext(), getVMContext());
5338 if (getContext().getTypeAlign(Ty) <= 32) {
5340 SizeRegs = (getContext().getTypeSize(Ty) + 31) / 32;
5343 SizeRegs = (getContext().getTypeSize(Ty) + 63) / 64;
5443 if (RetTy->isVectorType() && getContext().getTypeSize(RetTy) > 128) {
5450 if (RetTy->isHalfType() && !getContext().getLangOpts().NativeHalfArgsAndReturns) {
5468 if (isEmptyRecord(getContext(), RetTy, false))
5477 getVMContext(), getContext().getTypeSize(RetTy)));
5480 if (isIntegerLikeType(RetTy, getContext(), getVMContext())) {
5482 uint64_t Size = getContext().getTypeSize(RetTy);
5496 if (isEmptyRecord(getContext(), RetTy, true))
5512 uint64_t Size = getContext().getTypeSize(RetTy);
5517 return coerceToIntArray(RetTy, getContext(), getVMContext());
5555 uint64_t Size = getContext().getTypeSize(VT);
5575 unsigned VecSize = getContext().getTypeSize(VT);
5592 if (isEmptyRecord(getContext(), Ty, true)) {
5598 auto TyInfo = getContext().getTypeInfoInChars(Ty);
5747 MaxThreads = Attr->getMaxThreads()->EvaluateKnownConstInt(M.getContext());
5756 MinBlocks = Attr->getMinBlocks()->EvaluateKnownConstInt(M.getContext());
5768 llvm::LLVMContext &Ctx = M->getContext();
5859 getContext().getTypeSize(Ty) <= 128);
5886 if (isEmptyRecord(getContext(), Base, true))
5899 if (getContext().getLangOpts().CPlusPlus &&
5900 FD->isBitField() && FD->getBitWidthValue(getContext()) == 0)
5932 Ty = getContext().getCanonicalType(Ty);
5933 auto TyInfo = getContext().getTypeInfoInChars(Ty);
6082 if (isCompoundType(RetTy) || getContext().getTypeSize(RetTy) > 64)
6100 uint64_t Size = getContext().getTypeSize(Ty);
6103 getContext().getTypeSize(SingleElementTy) == Size)
6294 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD);
6343 uint64_t TySize = getContext().getTypeSize(Ty);
6344 uint64_t Align = getContext().getTypeAlign(Ty) / 8;
6390 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD);
6426 uint64_t Size = getContext().getTypeSize(RetTy);
6485 getContext().getIntWidth(Ty) < SlotSizeInBits) ||
6488 Ty = getContext().getIntTypeForBitwidth(SlotSizeInBits,
6492 auto TyInfo = getContext().getTypeInfoInChars(Ty);
6527 int TySize = getContext().getTypeSize(Ty);
6595 llvm::LLVMContext &Context = F->getContext();
6679 if (isEmptyRecord(getContext(), Ty, true))
6685 uint64_t Size = getContext().getTypeSize(Ty);
6704 if (RetTy->isVectorType() && getContext().getTypeSize(RetTy) > 64)
6716 if (isEmptyRecord(getContext(), RetTy, true))
6721 uint64_t Size = getContext().getTypeSize(RetTy);
6740 getContext().getTypeInfoInChars(Ty),
6778 unsigned Size = getContext().getTypeSize(Ty);
6806 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8;
6831 if (isEmptyRecord(getContext(), Ty, true))
6835 unsigned SizeInRegs = (getContext().getTypeSize(Ty) + 31) / 32;
7109 uint64_t Size = getContext().getTypeSize(Ty);
7165 auto TypeInfo = getContext().getTypeInfoInChars(Ty);
7392 CharUnits TypeAlign = getContext().getTypeAlignInChars(Ty);
7544 llvm::LLVMContext &Ctx = CGM.getModule().getContext();
7571 llvm::LLVMContext &Ctx = CGM.getModule().getContext();
7617 OS << Field->getBitWidthValue(CGM.getContext());