Lines Matching full:getcontext
46 ASTContext &ABIInfo::getContext() const {
47 return CGT.getContext();
456 unsigned SizeInRegs = (getContext().getTypeSize(Ty) + 31) / 32;
656 uint64_t Size = getContext().getTypeSize(RetTy);
696 if (X86_32ABIInfo::shouldReturnTypeInRegister(RetTy, getContext(),
698 uint64_t Size = getContext().getTypeSize(RetTy);
705 if (const Type *SeltTy = isSingleElementStruct(RetTy, getContext()))
771 if (Align >= 16 && (isSSEVectorType(getContext(), Ty) ||
772 isRecordWithSSEVectorType(getContext(), Ty)))
789 unsigned TypeAlign = getContext().getTypeAlign(Ty) / 8;
804 const Type *T = isSingleElementStruct(Ty, getContext());
823 unsigned Size = getContext().getTypeSize(Ty);
875 if (isEmptyRecord(getContext(), Ty, true))
882 unsigned SizeInRegs = (getContext().getTypeSize(Ty) + 31) / 32;
895 if (getContext().getTypeSize(Ty) <= 4*32 &&
896 canExpandIndirectArgument(Ty, getContext()))
906 uint64_t Size = getContext().getTypeSize(Ty);
982 unsigned Align = CGF.getContext().getTypeAlignInChars(Ty).getQuantity();
1003 llvm::RoundUpToAlignment(CGF.getContext().getTypeSize(Ty) / 8, Align);
1168 return !getContext().getTargetInfo().getTriple().isOSDarwin();
1392 getContext().getTargetInfo().getTriple().getOS() ==
1424 uint64_t Size = getContext().getTypeSize(VT);
1469 QualType ET = getContext().getCanonicalType(CT->getElementType());
1471 uint64_t Size = getContext().getTypeSize(Ty);
1477 } else if (ET == getContext().FloatTy)
1479 else if (ET == getContext().DoubleTy ||
1480 (ET == getContext().LongDoubleTy &&
1481 getContext().getTargetInfo().getTriple().getOS() ==
1484 else if (ET == getContext().LongDoubleTy)
1490 uint64_t EB_Imag = (OffsetBase + getContext().getTypeSize(ET)) / 64;
1497 if (const ConstantArrayType *AT = getContext().getAsConstantArrayType(Ty)) {
1500 uint64_t Size = getContext().getTypeSize(Ty);
1511 if (OffsetBase % getContext().getTypeAlign(AT->getElementType()))
1517 uint64_t EltSize = getContext().getTypeSize(AT->getElementType());
1541 uint64_t Size = getContext().getTypeSize(Ty);
1560 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD);
1581 OffsetBase + getContext().toBits(Layout.getBaseClassOffset(Base));
1604 if (Size > 128 && getContext().getTypeSize(i->getType()) != 256) {
1609 if (!BitField && Offset % getContext().getTypeAlign(i->getType())) {
1631 uint64_t Size = i->getBitWidthValue(getContext());
1673 uint64_t Size = getContext().getTypeSize(VecTy);
1706 unsigned Align = std::max(getContext().getTypeAlign(Ty) / 8, 8U);
1730 uint64_t Size = getContext().getTypeSize(Ty);
1895 SourceOffset*8+64, getContext()))
1947 SourceOffset*8+64, getContext()))
1975 (unsigned)getContext().getTypeSizeInChars(SourceTy).getQuantity();
2012 Lo = llvm::Type::getDoubleTy(Lo->getContext());
2015 Lo = llvm::Type::getInt64Ty(Lo->getContext());
2328 uint64_t Align = CGF.getContext().getTypeAlign(Ty) / 8;
2354 uint64_t SizeInBytes = (CGF.getContext().getTypeSize(Ty) + 7) / 8;
2376 Ty = CGF.getContext().getCanonicalType(Ty);
2529 uint64_t Size = getContext().getTypeSize(Ty);
2538 getContext().getTargetInfo().getTriple().getOS()
2582 llvm::RoundUpToAlignment(CGF.getContext().getTypeSize(Ty) / 8, 8);
2714 const Type *T = isSingleElementStruct(it->type, getContext());
2835 unsigned SizeInBytes = CGF.getContext().getTypeSize(Ty) / 8;
2841 CplxBaseSize = CGF.getContext().getTypeSize(BaseTy) / 8;
2970 getContext().getTargetInfo().getTriple().getEnvironmentName();
3069 if (getContext().getTargetInfo().getTriple().getEnvironmentName()=="gnueabihf")
3212 uint64_t Size = getContext().getTypeSize(Ty);
3234 uint64_t Size = getContext().getTypeSize(VT);
3258 if (isEmptyRecord(getContext(), Ty, true))
3271 if (isHomogeneousAggregate(Ty, Base, getContext(), &Members)) {
3276 unsigned ElementSize = getContext().getTypeSize(Base) == 64 ? 2 : 4;
3296 uint64_t TyAlign = getContext().getTypeAlign(Ty) / 8;
3300 if (getContext().getTypeSizeInChars(Ty) > CharUnits::fromQuantity(64)) {
3310 if (getContext().getTypeAlign(Ty) <= 32) {
3312 SizeRegs = (getContext().getTypeSize(Ty) + 31) / 32;
3315 SizeRegs = (getContext().getTypeSize(Ty) + 63) / 64;
3413 if (RetTy->isVectorType() && getContext().getTypeSize(RetTy) > 128)
3432 if (isEmptyRecord(getContext(), RetTy, false))
3441 getContext().getTypeSize(RetTy)));
3444 if (isIntegerLikeType(RetTy, getContext(), getVMContext())) {
3446 uint64_t Size = getContext().getTypeSize(RetTy);
3460 if (isEmptyRecord(getContext(), RetTy, true))
3466 if (isHomogeneousAggregate(RetTy, Base, getContext())) {
3475 uint64_t Size = getContext().getTypeSize(RetTy);
3509 uint64_t Size = CGF.getContext().getTypeSize(Ty) / 8;
3510 uint64_t TyAlign = CGF.getContext().getTypeAlign(Ty) / 8;
3546 else if (TyAlign < CGF.getContext().getTypeAlign(Ty) / 8) {
3553 CharUnits CharSize = getContext().getTypeSizeInChars(Ty);
3701 return ABIArgInfo::getIndirect(getContext().getTypeAlign(Ty) / 8,
3717 if (Ty->isVectorType() && getContext().getTypeSize(Ty) > 128) {
3734 assert(getContext().getTypeSize(Ty) <= 128 &&
3737 int RegsNeeded = getContext().getTypeSize(Ty) > 64 ? 2 : 1;
3742 if (getContext().getTypeAlign(Ty) == 128)
3756 if (isEmptyRecord(getContext(), Ty, true)) {
3757 if (!getContext().getLangOpts().CPlusPlus) {
3775 if (isHomogeneousAggregate(Ty, Base, getContext(), &NumMembers)) {
3782 uint64_t Size = getContext().getTypeSize(Ty);
3790 if (getContext().getTypeAlign(Ty) == 128) {
3831 Ty = CGF.getContext().getCanonicalType(Ty);
3879 if (FreeIntRegs < 8 && AI.isDirect() && getContext().getTypeAlign(Ty) > 64) {
3880 int Align = getContext().getTypeAlign(Ty) / 8;
3929 if (isHomogeneousAggregate(Ty, Base, getContext(), &NumMembers)
3970 if (AI.isDirect() && getContext().getTypeAlign(Ty) > 64) {
3971 getContext().getTypeAlign(Ty) / 8;
3987 StackSize = getContext().getTypeSize(Ty) / 8;
4081 const LangOptions &LangOpts = getContext().getLangOpts();
4088 getContext().getTargetInfo().getTriple().getEnvironmentName();
4380 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD);
4428 uint64_t TySize = getContext().getTypeSize(Ty);
4429 uint64_t Align = getContext().getTypeAlign(Ty) / 8;
4473 const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD);
4509 uint64_t Size = getContext().getTypeSize(RetTy);
4558 int64_t TypeAlign = getContext().getTypeAlign(Ty) / 8;
4561 unsigned PtrWidth = getContext().getTargetInfo().getPointerWidth(0);
4578 llvm::RoundUpToAlignment(CGF.getContext().getTypeSize(Ty) / 8, TypeAlign);
4648 llvm::LLVMContext &Context = F->getContext();
4730 if (isEmptyRecord(getContext(), Ty, true))
4738 uint64_t Size = getContext().getTypeSize(Ty);
4757 if (RetTy->isVectorType() && getContext().getTypeSize(RetTy) > 64)
4774 if (isEmptyRecord(getContext(), RetTy, true))
4779 uint64_t Size = getContext().getTypeSize(RetTy);
4808 llvm::RoundUpToAlignment(CGF.getContext().getTypeSize(Ty) / 8, 4);
4822 const llvm::Triple &Triple = getContext().getTargetInfo().getTriple();
4844 if (strcmp(getContext().getTargetInfo().getABI(), "apcs-gnu") == 0)
4882 bool DisableMMX = strcmp(getContext().getTargetInfo().getABI(), "no-mmx") == 0;
4916 bool HasAVX = strcmp(getContext().getTargetInfo().getABI(), "avx") == 0;