reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/CodeGen/CGAtomic.cpp
   47       ASTContext &C = CGF.getContext();
  121         AtomicTy = ValueTy = CGF.getContext().getExtVectorType(
  171       CharUnits size = CGF.getContext().toCharUnitsFromBits(AtomicSizeInBits);
  205       return LValue::MakeAddr(addr, getValueType(), CGF.getContext(),
  352       CGF.getContext().toCharUnitsFromBits(AtomicSizeInBits).getQuantity(),
  727     CharUnits Align = CGF.getContext().getTypeAlignInChars(ValTy);
  728     int64_t SizeInBits = CGF.getContext().toBits(SizeInChars);
  730         CGF.getContext().getIntTypeForBitwidth(SizeInBits, /*Signed=*/false);
  735                                CGF.getContext().getPointerType(ValTy),
  742                          CGF.getContext().VoidPtrTy);
  766   std::tie(sizeChars, alignChars) = getContext().getTypeInfoInChars(AtomicTy);
  770   bool Oversized = getContext().toBits(sizeChars) > MaxInlineWidthInBits;
  835           getContext().getTypeSizeInChars(MemTy->getPointeeType());
  965                getContext().getSizeType());
  976       auto DestAS = getContext().getTargetAddressSpace(LangAS::opencl_generic);
  986              getContext().VoidPtrTy);
  990       MemTy->isPointerType() ? getContext().getIntPtrType() : MemTy;
 1013       RetTy = getContext().BoolTy;
 1018           getContext().VoidPtrTy);
 1021       Args.add(RValue::get(Order), getContext().IntTy);
 1042       RetTy = getContext().VoidTy;
 1156         RetTy = getContext().getIntTypeForBitwidth(
 1157             getContext().toBits(sizeChars), /*Signed=*/false);
 1160         RetTy = getContext().VoidTy;
 1162                  getContext().VoidPtrTy);
 1167              getContext().IntTy);
 1169       Args.add(RValue::get(Scope), getContext().IntTy);
 1431   Args.add(RValue::get(getAtomicSizeValue()), CGF.getContext().getSizeType());
 1433            CGF.getContext().VoidPtrTy);
 1435            CGF.getContext().VoidPtrTy);
 1438       CGF.getContext().IntTy);
 1439   emitAtomicLibcall(CGF, "__atomic_load", CGF.getContext().VoidTy, Args);
 1466   if (getContext().getTypeSize(LV.getType()) >
 1467       getContext().getTypeSize(getContext().getIntPtrType()))
 1467       getContext().getTypeSize(getContext().getIntPtrType()))
 1628   Args.add(RValue::get(getAtomicSizeValue()), CGF.getContext().getSizeType());
 1630            CGF.getContext().VoidPtrTy);
 1632            CGF.getContext().VoidPtrTy);
 1634            CGF.getContext().VoidPtrTy);
 1637            CGF.getContext().IntTy);
 1640            CGF.getContext().IntTy);
 1642                                               CGF.getContext().BoolTy, Args);
 1941                getContext().getSizeType());
 1943                getContext().VoidPtrTy);
 1945                getContext().VoidPtrTy);
 1948           getContext().IntTy);
 1949       emitAtomicLibcall(*this, "__atomic_store", getContext().VoidTy, args);
tools/clang/lib/CodeGen/CGBlocks.cpp
  516          CGF.getContext().getLValueReferenceType(VD->getType()) : VD->getType();
 1075       DeclRefExpr declRef(getContext(), const_cast<VarDecl *>(variable),
 1144       ImplicitParamDecl BlockFieldPseudoVar(getContext(), type,
 1149       DeclRefExpr declRef(getContext(), const_cast<VarDecl *>(variable),
 1261   ASTContext &Ctx = getContext();
 1502           getContext().getLangOpts().OpenCL
 1503               ? getContext().getTargetAddressSpace(LangAS::opencl_generic)
 1544   QualType selfTy = getContext().VoidPtrTy;
 1551     selfTy = getContext().getPointerType(getContext().getAddrSpaceQualType(
 1551     selfTy = getContext().getPointerType(getContext().getAddrSpaceQualType(
 1552         getContext().VoidTy, LangAS::opencl_generic));
 1556   ImplicitParamDecl SelfDecl(getContext(), const_cast<BlockDecl *>(blockDecl),
 1579     auto GenVoidPtrTy = getContext().getLangOpts().OpenCL
 1622     CharUnits align = getContext().getDeclAlign(variable);
 2002   ASTContext &C = getContext();
 2197   ASTContext &C = getContext();
 2446   ASTContext &Context = CGF.getContext();
 2524   ASTContext &Context = CGF.getContext();
 2528   ImplicitParamDecl Src(CGF.getContext(), Context.VoidPtrTy,
 2761   bool hasCopyAndDispose = getContext().BlockRequiresCopying(Ty, D);
 2774   if (getContext().getByrefLifetime(Ty, Lifetime, HasByrefExtendedLayout) &&
 2785   CharUnits varAlign = getContext().getDeclAlign(D);
 2846     getContext().getByrefLifetime(type, ByrefLifetime, HasByrefExtendedLayout);
tools/clang/lib/CodeGen/CGBuiltin.cpp
  122   assert(CGF.getContext().hasSameUnqualifiedType(T,
  124   assert(CGF.getContext().hasSameUnqualifiedType(T, E->getArg(1)->getType()));
  131                            CGF.getContext().getTypeSize(T));
  183   assert(CGF.getContext().hasSameUnqualifiedType(T,
  185   assert(CGF.getContext().hasSameUnqualifiedType(T, E->getArg(1)->getType()));
  192                            CGF.getContext().getTypeSize(T));
  232       CGF.getLLVMContext(), CGF.getContext().getTypeSize(T));
  272   assert(CGF.getContext().hasSameUnqualifiedType(
  274   assert(CGF.getContext().hasSameUnqualifiedType(E->getType(),
  276   assert(CGF.getContext().hasSameUnqualifiedType(E->getType(),
  325   CharUnits LoadSize = CGF.getContext().getTypeSizeInChars(ElTy);
  339   CharUnits StoreSize = CGF.getContext().getTypeSizeInChars(ElTy);
  560   if (!E->tryEvaluateObjectSize(ObjectSize, getContext(), Type))
  593                               getContext().getSizeType(), E->getBeginLoc());
  600   if (Type == 3 || (!EmittedE && E->HasSideEffects(getContext())))
  716       CGF.getContext().getTypeSize(E->getArg(1)->getType()));
 1121   ASTContext &Ctx = getContext();
 1227   ASTContext &Ctx = getContext();
 1399   ASTContext &Context = CGF.getContext();
 1848     llvm::Type *LLVMIntTy = getTypes().ConvertType(getContext().IntTy);
 2061     if (E->getArg(0)->HasSideEffects(getContext()))
 2114     if (Arg->HasSideEffects(getContext()))
 2136         E->getArg(1)->EvaluateKnownConstInt(getContext()).getZExtValue();
 2277                    getContext().getFloatTypeSemantics(E->getArg(0)->getType()));
 2340         getContext().getFloatTypeSemantics(E->getArg(5)->getType()));
 2359     const TargetInfo &TI = getContext().getTargetInfo();
 2499     llvm::Type *WCharTy = ConvertType(getContext().WCharTy);
 2521         getContext().getTypeAlignInChars(getContext().WCharTy);
 2521         getContext().getTypeAlignInChars(getContext().WCharTy);
 2567                                                    getContext().UnsignedIntTy);
 2577                                                    getContext().UnsignedIntTy);
 2842     CharUnits StoreSize = getContext().getTypeSizeInChars(ElTy);
 2877              getContext().getSizeType());
 2880                getContext().VoidPtrTy);
 2883                getContext().VoidPtrTy);
 3399                        getContext().getTypeSize(E->getType()));
 3527     auto & Context = getContext();
 3572         getContext().getTargetAddressSpace(LangAS::opencl_generic);
 3636     llvm::Type *ReservedIDTy = ConvertType(getContext().OCLReserveIDTy);
 3746     llvm::Type *QueueTy = ConvertType(getContext().OCLQueueTy);
 3748         getContext().getTargetAddressSpace(LangAS::opencl_generic));
 3790       QualType SizeArrayTy = getContext().getConstantArrayType(
 3791           getContext().getSizeType(), ArraySize, nullptr, ArrayType::Normal,
 3847       llvm::Type *EventTy = ConvertType(getContext().OCLClkEventTy);
 3859               getContext(), Expr::NPC_ValueDependentIsNotNull)) {
 3870               getContext(), Expr::NPC_ValueDependentIsNotNull)) {
 3927         getContext().getTargetAddressSpace(LangAS::opencl_generic));
 3941         getContext().getTargetAddressSpace(LangAS::opencl_generic));
 3956         getContext().getTargetAddressSpace(LangAS::opencl_generic));
 4004     if (!getContext().getTargetInfo().isTLSSupported())
 4112   if (getContext().BuiltinInfo.isLibFunction(BuiltinID))
 4118   if (getContext().BuiltinInfo.isPredefinedLibFunction(BuiltinID))
 4129   if (unsigned VectorWidth = getContext().BuiltinInfo.getRequiredVectorWidth(BuiltinID))
 4133   const char *Name = getContext().BuiltinInfo.getName(BuiltinID);
 4153     getContext().GetBuiltinType(BuiltinID, Error, &ICEArguments);
 4168         bool IsConst = E->getArg(i)->isIntegerConstantExpr(Result,getContext());
 4274   if (getContext().BuiltinInfo.isAuxBuiltinID(BuiltinID)) {
 4275     assert(getContext().getAuxTargetInfo() && "Missing aux target info");
 4277         this, getContext().BuiltinInfo.getAuxBuiltinID(BuiltinID), E,
 4278         ReturnValue, getContext().getAuxTargetInfo()->getTriple().getArch());
 5146     llvm::Type *Ty = ConvertType(E->getCallReturnType(getContext()));
 5243   if (!Arg->isIntegerConstantExpr(NeonTypeConst, getContext()))
 6151        getContext().getTypeSize(E->getType()) == 64) ||
 6189         getLLVMContext(), getContext().getTypeSize(Ty))->getPointerTo();
 6211        getContext().getTypeSize(E->getArg(0)->getType()) == 64)) {
 6237                                                  getContext().getTypeSize(Ty));
 6344   getContext().GetBuiltinType(BuiltinID, Error, &ICEArguments);
 6422       bool IsConst = E->getArg(i)->isIntegerConstantExpr(Result, getContext());
 6626   if (!Arg->isIntegerConstantExpr(Result, getContext()))
 6933   if (!Arg->isIntegerConstantExpr(Result, CGF.getContext()))
 7107     assert((getContext().getTypeSize(E->getType()) == 32) &&
 7114     assert((getContext().getTypeSize(E->getType()) == 64) &&
 7133     assert((getContext().getTypeSize(E->getType()) == 32) &&
 7154       getContext().getTypeSize(E->getType()) == 128) {
 7180         getLLVMContext(), getContext().getTypeSize(Ty))->getPointerTo();
 7200       getContext().getTypeSize(E->getArg(0)->getType()) == 128) {
 7226                                                  getContext().getTypeSize(Ty));
 7418       E->getArg(0)->EvaluateKnownConstInt(getContext()).getZExtValue();
 7462   getContext().GetBuiltinType(BuiltinID, Error, &ICEArguments);
 7473       bool IsConst = E->getArg(i)->isIntegerConstantExpr(Result, getContext());
 7494   if (Arg->isIntegerConstantExpr(Result, getContext()))
 7740         Ops[0], ConvertType(E->getCallReturnType(getContext())),
 7748         Ops[0], ConvertType(E->getCallReturnType(getContext())),
 7756         Ops[0], ConvertType(E->getCallReturnType(getContext())),
 7764         Ops[0], ConvertType(E->getCallReturnType(getContext())),
 7772         Ops[0], ConvertType(E->getCallReturnType(getContext())),
 8415     llvm::Type *Ty = ConvertType(E->getCallReturnType(getContext()));
10170   getContext().GetBuiltinType(BuiltinID, Error, &ICEArguments);
10183     bool IsConst = E->getArg(i)->isIntegerConstantExpr(Result, getContext());
10506       getContext().getTypeAlignInChars(E->getArg(1)->getType()).getQuantity();
10546       getContext().getTypeAlignInChars(E->getArg(1)->getType()).getQuantity();
12277                             getContext().toCharUnitsFromBits(128));
12332         IntTy, Ptr, getContext().getTypeAlignInChars(E->getType()));
12344         IntTy, Ptr, getContext().getTypeAlignInChars(E->getType()));
13171     bool IsConstM4 = E->getArg(1)->isIntegerConstantExpr(M4, getContext());
13172     bool IsConstM5 = E->getArg(2)->isIntegerConstantExpr(M5, getContext());
13218     bool IsConstM4 = E->getArg(2)->isIntegerConstantExpr(M4, getContext());
13248     bool IsConstM4 = E->getArg(2)->isIntegerConstantExpr(M4, getContext());
13911     if (!E->getArg(3)->isIntegerConstantExpr(isColMajorArg, getContext()))
13955     if (!E->getArg(3)->isIntegerConstantExpr(isColMajorArg, getContext()))
14005     if (!E->getArg(4)->isIntegerConstantExpr(LayoutArg, getContext()))
14013     else if (!E->getArg(5)->isIntegerConstantExpr(SatfArg, getContext()))
14085     if (!E->getArg(0)->isIntegerConstantExpr(SegConst, getContext()))
14088     if (!E->getArg(1)->isIntegerConstantExpr(MemConst, getContext()))
14101     if (!E->getArg(0)->isIntegerConstantExpr(SegConst, getContext()))
14230     if (!E->getArg(1)->isIntegerConstantExpr(LaneConst, getContext()))
14258     if (!E->getArg(1)->isIntegerConstantExpr(LaneConst, getContext()))
tools/clang/lib/CodeGen/CGCXXABI.cpp
   26   Diags.Report(CGF.getContext().getFullLoc(CGF.CurCodeDecl->getLocation()),
  135   auto &Layout = CGF.getContext().getASTRecordLayout(MD->getParent());
tools/clang/lib/CodeGen/CGCall.cpp
 1005   CharUnits EltSize = CGF.getContext().getTypeSizeInChars(CAE->EltTy);
 1021   auto Exp = getTypeExpansion(Ty, getContext());
 1058   auto Exp = getTypeExpansion(Ty, getContext());
 2328           CharUnits Size = getContext().getTypeSizeInChars(Ty);
 2367               getContext().getAsConstantArrayType(OTy)) {
 2379                   getContext().getTypeSizeInChars(ETy).getQuantity()*ArrSize);
 2381               } else if (getContext().getTargetAddressSpace(ETy) == 0 &&
 2387                      getContext().getAsVariableArrayType(OTy)) {
 2392                 !getContext().getTargetAddressSpace(ArrTy->getElementType()) &&
 2426           Address arg = Address(V, getContext().getTypeAlignInChars(pointeeTy));
 2456       Address Alloca = CreateMemTemp(Ty, getContext().getDeclAlign(Arg),
 2514       Address alloca = CreateMemTemp(Ty, getContext().getDeclAlign(Arg));
 2538       Address Alloca = CreateMemTemp(Ty, getContext().getDeclAlign(Arg));
 3096       param->needsDestruction(getContext())) {
 3369     auto Nullability = PVD->getType()->getNullability(getContext());
 3427     const auto &Context = getContext();
 3462             getContext().hasSameUnqualifiedType((*Arg)->getType(),
 3634       getContext().getTypeSize(Arg->getType()) <
 3635           getContext().getTargetInfo().getPointerWidth(0) &&
 3636       Arg->isNullPointerConstant(getContext(),
 3638     return getContext().getIntPtrType();
 3978                 getContext().getTypeAlignInChars(I->Ty)))) {
 4053             Address(V, getContext().getTypeAlignInChars(pointeeTy));
tools/clang/lib/CodeGen/CGClass.cpp
  208   const ASTRecordLayout &Layout = getContext().getASTRecordLayout(Derived);
  298     const ASTRecordLayout &layout = getContext().getASTRecordLayout(Derived);
  309   QualType DerivedTy = getContext().getRecordType(Derived);
  384     getContext().getCanonicalType(getContext().getTagDeclType(Derived));
  384     getContext().getCanonicalType(getContext().getTagDeclType(Derived));
  461     const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD);
  550   if (BaseInitializerUsesThis(CGF.getContext(), BaseInit->getInit()))
  621   QualType RecordTy = CGF.getContext().getTypeDeclType(ClassDecl);
  639     = CGF.getContext().getAsConstantArrayType(FieldType);
  642     QualType BaseElementTy = CGF.getContext().getBaseElementType(Array);
  644     if (BaseElementTy.isPODType(CGF.getContext()) ||
  759   ASTContext &Context = getContext();
  902         RecLayout(CGF.getContext().getASTRecordLayout(ClassDecl)),
  908       if (CGF.getContext().getLangOpts().SanitizeAddressFieldPadding)
  924       ASTContext &Ctx = CGF.getContext();
  950         FirstByteOffset = CGF.getContext().toBits(BFInfo.StorageOffset);
  956       QualType RecordTy = CGF.getContext().getTypeDeclType(ClassDecl);
 1055           !(FieldType.isTriviallyCopyableType(CGF.getContext()) ||
 1109       QualType RecordTy = CGF.getContext().getTypeDeclType(ClassDecl);
 1413     if (!FieldHasTrivialDestructorBody(CGF.getContext(), Field))
 1566                          CGF.getContext().getTagDeclType(ClassDecl));
 1584                        CGF.getContext().getTagDeclType(ClassDecl));
 1625       QualType RecordTy = CGF.getContext().getTagDeclType(field->getParent());
 1663           CGF.getContext().getASTRecordLayout(Dtor->getParent());
 1674       ASTContext &Context = CGF.getContext();
 1707       ASTContext &Context = CGF.getContext();
 1750       ASTContext &Context = CGF.getContext();
 1793                        getContext().getTagDeclType(ClassDecl));
 1961   QualType type = getContext().getTypeDeclType(ctor->getParent());
 1964              .alignmentOfArrayElement(getContext().getTypeSizeInChars(type));
 2042     unsigned TargetThisAS = getContext().getTargetAddressSpace(ThisAS);
 2060     QualType DestTy = getContext().getTypeDeclType(D->getParent());
 2089       if (P->needsDestruction(CGF.getContext()))
 2116                   getContext().getRecordType(ClassDecl), CharUnits::Zero());
 2133     QualType DestTy = getContext().getTypeDeclType(ClassDecl);
 2208       assert(getContext().hasSameUnqualifiedType(
 2553         getContext().getASTRecordLayout(VTableClass);
 2559       const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD);
 2748   if (getContext().getSanitizerBlacklist().isBlacklistedType(M, TypeName))
 2801   return !getContext().getSanitizerBlacklist().isBlacklistedType(
 2824       !getContext().getSanitizerBlacklist().isBlacklistedType(
 2890   QualType ThisType = getContext().getPointerType(getContext().getRecordType(Lambda));
 2890   QualType ThisType = getContext().getPointerType(getContext().getRecordType(Lambda));
 2909   QualType ThisType = getContext().getPointerType(getContext().getRecordType(Lambda));
 2909   QualType ThisType = getContext().getPointerType(getContext().getRecordType(Lambda));
tools/clang/lib/CodeGen/CGCoroutine.cpp
  239     auto *Catch = new (CGF.getContext())
  242         CompoundStmt::Create(CGF.getContext(), S.getResumeExpr(), Loc, Loc);
  243     TryStmt = CXXTryStmt::Create(CGF.getContext(), Loc, TryBody, Catch);
  302   assert(getCoroutineSuspendExprReturnType(getContext(), E)->isReferenceType() &&
  312   assert(getCoroutineSuspendExprReturnType(getContext(), E)->isReferenceType() &&
  659           CXXTryStmt::Create(getContext(), Loc, S.getBody(), &Catch);
tools/clang/lib/CodeGen/CGDecl.cpp
  367   if (D.needsDestruction(getContext()) && HaveInsertPoint()) {
  383   CharUnits alignment = getContext().getDeclAlign(&D);
  550       DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(&Var), false,
  568       DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(&Var), false,
  586                CGF.getContext().getPointerType(Var.getType()));
  724   auto Nullability = LHS.getType()->getNullability(getContext());
 1321   while (getContext().getAsVariableArrayType(Type1D)) {
 1330       auto &Ident = getContext().Idents.getOwn(NameRef);
 1356       auto QT = getContext().getIntTypeForBitwidth(
 1359           getContext(), const_cast<DeclContext *>(D.getDeclContext()),
 1361           getContext().CreateTypeSourceInfo(QT), SC_Auto);
 1386   CharUnits alignment = getContext().getDeclAlign(&D);
 1417          ((Ty.isPODType(getContext()) ||
 1418            getContext().getBaseElementType(Ty)->isObjCObjectPointerType()) &&
 1419           D.getInit()->isConstantInitializer(getContext(), false)))) {
 1664   auto trivialAutoVarInit = getContext().getLangOpts().getTrivialAutoVarInit();
 1665   CharUnits Size = getContext().getTypeSizeInChars(type);
 1686   const auto *VlaType = getContext().getAsVariableArrayType(type);
 1691   CharUnits EltSize = getContext().getTypeSizeInChars(VlaSize.Type);
 1707     CharUnits ConstantAlign = getContext().getTypeAlignInChars(VlaSize.Type);
 1795                   : getContext().getLangOpts().getTrivialAutoVarInit()));
 1814       D.mightBeUsableInConstantExpressions(getContext())) {
 1991   if (QualType::DestructionKind dtorKind = D.needsDestruction(getContext()))
 2104   const ArrayType *arrayType = getContext().getAsArrayType(type);
 2112         .alignmentOfArrayElement(getContext().getTypeSizeInChars(type));
 2199   while (const ArrayType *arrayType = CGF.getContext().getAsArrayType(type)) {
 2387       assert(getContext().getTargetAddressSpace(SrcLangAS) ==
 2389       auto DestAS = getContext().getTargetAddressSpace(DestLangAS);
 2402               D.needsDestruction(getContext())) {
 2421       DeclPtr = CreateMemTemp(Ty, getContext().getDeclAlign(&D),
 2510     auto Nullability = Ty->getNullability(getContext());
tools/clang/lib/CodeGen/CGDeclCXX.cpp
   31        (D.hasLocalStorage() && CGF.getContext().getLangOpts().OpenCLCPlusPlus)) &&
   76   QualType::DestructionKind DtorKind = D.needsDestruction(CGF.getContext());
  119     if (CGF.getContext().getLangOpts().OpenCL) {
  151       Addr, CGF.getContext().getTypeSizeInChars(D.getType()));
  194   unsigned ExpectedAddrSpace = getContext().getTargetAddressSpace(T);
  202   ConstantAddress DeclAddr(DeclPtr, getContext().getDeclAlign(&D));
  646                 getContext().VoidTy, Fn, getTypes().arrangeNullaryFunction(),
  674     StartFunction(GlobalDecl(), getContext().VoidTy, Fn,
  733     StartFunction(GlobalDecl(), getContext().VoidTy, Fn,
  761   ImplicitParamDecl Dst(getContext(), getContext().VoidPtrTy,
  761   ImplicitParamDecl Dst(getContext(), getContext().VoidPtrTy,
  766     CGM.getTypes().arrangeBuiltinFunctionDeclaration(getContext().VoidTy, args);
  773   StartFunction(VD, getContext().VoidTy, fn, FI, args);
tools/clang/lib/CodeGen/CGException.cpp
 1620     ASTContext &Context = CGF.getContext();
 1857           getContext(), /*DC=*/nullptr, StartLoc,
 1858           &getContext().Idents.get("exception_pointers"),
 1859           getContext().VoidPtrTy, ImplicitParamDecl::Other));
 1862           getContext(), /*DC=*/nullptr, StartLoc,
 1863           &getContext().Idents.get("abnormal_termination"),
 1864           getContext().UnsignedCharTy, ImplicitParamDecl::Other));
 1867         getContext(), /*DC=*/nullptr, StartLoc,
 1868         &getContext().Idents.get("frame_pointer"), getContext().VoidPtrTy,
 1868         &getContext().Idents.get("frame_pointer"), getContext().VoidPtrTy,
 1872   QualType RetTy = IsFilter ? getContext().LongTy : getContext().VoidTy;
 1872   QualType RetTy = IsFilter ? getContext().LongTy : getContext().VoidTy;
 1902   R = Builder.CreateIntCast(R, ConvertType(getContext().LongTy),
 1934         CreateMemTemp(getContext().IntTy, "__exception_code"));
 2007       CreateMemTemp(getContext().IntTy, "__exception_code"));
 2014                                            getContext().IntTy);
tools/clang/lib/CodeGen/CGExpr.cpp
   88     auto DestAddrSpace = getContext().getTargetAddressSpace(LangAS::Default);
  135   CharUnits Align = getContext().getTypeAlignInChars(Ty);
  142   return CreateMemTemp(Ty, getContext().getTypeAlignInChars(Ty), Name, Alloca);
  158   return CreateMemTempWithoutCast(Ty, getContext().getTypeAlignInChars(Ty),
  171   QualType BoolTy = getContext().BoolTy;
  393               CGF.getContext().getTargetAddressSpace(AS));
  394           CharUnits alignment = CGF.getContext().getTypeAlignInChars(Ty);
  401                     CGF.getContext().getTargetAddressSpace(LangAS::Default)));
  714     uint64_t TySize = getContext().getTypeSizeInChars(Ty).getQuantity();
  745       AlignVal = getContext().getTypeAlignInChars(Ty).getQuantity();
  888   ASTContext &C = getContext();
 1001     llvm::APFloat FVal(getContext().getFloatTypeSemantics(ElemTy), 1);
 1313                               getContext(), LV.getBaseInfo(), LV.getTBAAInfo());
 1455       refExpr->EvaluateAsRValue(result, getContext())) {
 1461              refExpr->EvaluateAsLValue(result, getContext())) {
 1481     if (!getContext().DeclMustBeEmitted(cast<VarDecl>(value)))
 1500         CGF.getContext(), NestedNameSpecifierLoc(), SourceLocation(), VD,
 1554     Min = llvm::APInt(CGF.getContext().getTypeSize(Ty), 0);
 1555     End = llvm::APInt(CGF.getContext().getTypeSize(Ty), 2);
 1667       LValue::MakeAddr(Addr, Ty, getContext(), BaseInfo, TBAAInfo);
 1698     assert(Value->getType()->isIntegerTy(getContext().getTypeSize(Ty)) &&
 1708     assert(Value->getType()->isIntegerTy(getContext().getTypeSize(Ty)) &&
 1746       LValue::MakeAddr(Addr, Ty, getContext(), BaseInfo, TBAAInfo);
 2314   QualType PtrTy = CGF.getContext().getPointerType(VD->getType());
 2379   CharUnits Alignment = CGF.getContext().getDeclAlign(VD);
 2392   setObjCGCLValueClass(CGF.getContext(), E, LV);
 2423   CharUnits Alignment = CGF.getContext().getDeclAlign(FD);
 2430   QualType TagType = CGF.getContext().getTagDeclType(FD->getParent());
 2486   VD = VD->getDefinition(CGF.getContext());
 2543                                            getContext().getDeclAlign(VD));
 2546             VarTy, getContext().getTargetAddressSpace(VD->getType()));
 2580             Address(CapLVal.getPointer(), getContext().getDeclAlign(VD)),
 2621                      getContext().getDeclAlign(VD));
 2662     setObjCGCLValueClass(getContext(), E, LV);
 2683   QualType ExprTy = getContext().getCanonicalType(E->getSubExpr()->getType());
 2704       LV.setNonGC(!E->isOBJCGCCandidate(getContext()));
 2801     TypeInfo = (llvm::Log2_32(getContext().getTypeSize(T)) << 1) |
 2805     TypeInfo = getContext().getTypeSize(T);
 2876   PresumedLoc PLoc = getContext().getSourceManager().getPresumedLoc(Loc);
 3190   ImplicitParamDecl ArgData(getContext(), getContext().VoidPtrTy,
 3190   ImplicitParamDecl ArgData(getContext(), getContext().VoidPtrTy,
 3192   ImplicitParamDecl ArgAddr(getContext(), getContext().VoidPtrTy,
 3192   ImplicitParamDecl ArgAddr(getContext(), getContext().VoidPtrTy,
 3198     CGM.getTypes().arrangeBuiltinFunctionDeclaration(getContext().VoidTy, Args);
 3420   if (auto vla = CGF.getContext().getAsVariableArrayType(eltType)) {
 3421     eltType = getFixedSizeElementType(CGF.getContext(), vla);
 3425   CharUnits eltSize = CGF.getContext().getTypeSizeInChars(eltType);
 3509            getContext().getAsVariableArrayType(E->getType())) {
 3540     CharUnits InterfaceSize = getContext().getTypeSizeInChars(OIT);
 3601     LV.setNonGC(!E->isOBJCGCCandidate(getContext()));
 3602     setObjCGCLValueClass(getContext(), E, LV);
 3650   if (auto *AT = getContext().getAsArrayType(BaseTy))
 3744   if (auto *VLA = getContext().getAsVariableArrayType(ResultExprTy)) {
 3886     setObjCGCLValueClass(getContext(), E, LV);
 3902     getContext().getTagDeclType(Field->getParent());
 3928   CharUnits Offset = CGF.getContext().toCharUnitsFromBits(
 3929       CGF.getContext().getFieldOffset(Field));
 3942   if (field->isZeroSize(CGF.getContext()))
 3957       CGF.getContext().getRecordType(rec), rec->getLocation());
 4002           getContext().getRecordType(rec), rec->getLocation());
 4048         getContext().getASTRecordLayout(field->getParent());
 4049     unsigned CharWidth = getContext().getCharWidth();
 4057         getContext().getTypeSizeInChars(FieldType).getQuantity();
 4077         hasAnyVptr(FieldType, getContext()))
 4086           getContext().getRecordType(rec), rec->getLocation());
 4430     QualType DestTy = getContext().getPointerType(E->getType());
 4664   assert(E->getCallReturnType(getContext())->isReferenceType() &&
 4761   setObjCGCLValueClass(getContext(), E, LV);
 4783   CalleeType = getContext().getCanonicalType(CalleeType);
 4797         getContext().getFunctionTypeWithExceptionSpec(PointeeType, EST_None);
tools/clang/lib/CodeGen/CGExprAgg.cpp
  362     CharUnits sz = dest.getPreferredSize(CGF.getContext(), type);
  386   ASTContext &Ctx = CGF.getContext();
  477       CGF.getContext().getAsArrayType(ArrayQTy)->getElementType();
  486   CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType);
  494       elementType.isTriviallyCopyableType(CGF.getContext())) {
  654       E->getType().isPODType(CGF.getContext())) {
  731         CGF.getContext().getTypeSizeInChars(E->getType()).getQuantity());
  753     assert(CGF.getContext().hasSameUnqualifiedType(valueType,
  767       assert(CGF.getContext().hasSameUnqualifiedType(op->getType(),
  826     assert(CGF.getContext().hasSameUnqualifiedType(E->getSubExpr()->getType(),
  889   if (E->getCallReturnType(CGF.getContext())->isReferenceType()) {
  975   assert(CGF.getContext().hasSameType(E->getLHS()->getType(),
  978       CGF.getContext().CompCategories.getInfoForType(E->getType());
 1141   assert(CGF.getContext().hasSameUnqualifiedType(E->getLHS()->getType(),
 1150       E->getRHS()->HasSideEffects(CGF.getContext())) {
 1378            !E->HasSideEffects(CGF.getContext());
 1661       CGF.getContext().getAsArrayType(E->getType())->getElementType();
 1662   CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType);
 1758     return CGF.getContext().getTypeSizeInChars(E->getType());
 1786           NumNonZeroBytes += CGF.getContext().toCharUnitsFromBits(
 1815     if (const RecordType *RT = CGF.getContext()
 1823   CharUnits Size = Slot.getPreferredSize(CGF.getContext(), E->getType());
 1883   const ASTRecordLayout &Layout = getContext().getASTRecordLayout(ClassRD);
 1885           getContext().getTypeSize(FD->getType()) <=
 1886       (uint64_t)getContext().toBits(Layout.getNonVirtualSize()))
 1904   const ASTRecordLayout &Layout = getContext().getASTRecordLayout(RD);
 1906           getContext().getASTRecordLayout(BaseRD).getSize() <=
 1954     TypeInfo = getContext().getTypeInfoDataSizeInChars(Ty);
 1956     TypeInfo = getContext().getTypeInfoInChars(Ty);
 1962             getContext().getAsArrayType(Ty))) {
 1965       TypeInfo = getContext().getTypeInfoInChars(BaseEltTy);
 2003     QualType BaseType = getContext().getBaseElementType(Ty);
tools/clang/lib/CodeGen/CGExprCXX.cpp
  193     return EmitCall(getContext().getPointerType(MD->getType()), callee, CE,
  318   ASTContext &C = getContext();
  448     getContext().getPointerType(getContext().getTagDeclType(RD));
  448     getContext().getPointerType(getContext().getTagDeclType(RD));
  486   const ASTRecordLayout &Layout = CGF.getContext().getASTRecordLayout(Base);
  597     assert(getContext().hasSameUnqualifiedType(E->getType(),
  599     if (E->getArg(0)->isTemporaryObject(getContext(), CD->getParent())) {
  606         = getContext().getAsArrayType(E->getType())) {
  655   assert(!getContext().getAsConstantArrayType(E->getType())
  681     CharUnits typeSize = CGF.getContext().getTypeSizeInChars(type);
  718              = CGF.getContext().getAsConstantArrayType(type)) {
  723   CharUnits typeSize = CGF.getContext().getTypeSizeInChars(type);
  982   CharUnits ElementSize = getContext().getTypeSizeInChars(ElementType);
 1002           getContext().getTypeSizeInChars(ElementType).getQuantity() *
 1060       InitListElements *= getContext().getConstantArrayElementCount(CAT);
 1176   assert(getContext().hasSameUnqualifiedType(ElementType, Init->getType()) &&
 1318   ASTContext &Ctx = getContext();
 1441                        CGF.getContext().getSizeType());
 1450                        CGF.getContext().getSizeType());
 1536   QualType allocType = getContext().getBaseElementType(E->getAllocatedType());
 1558   CharUnits allocAlign = getContext().getTypeAlignInChars(allocType);
 1581       allocatorArgs.add(RValue::get(allocSize), getContext().getSizeType());
 1591     QualType sizeType = getContext().getSizeType();
 1605         assert(getContext().hasSameUnqualifiedType(
 1634           Target.getNewAlign(), getContext().getTypeSize(allocType)));
 1636           allocationAlign, getContext().toCharUnitsFromBits(AllocatorAlign));
 1647                    (!allocType.isPODType(getContext()) || E->hasInitializer() ||
 1782     CharUnits DeleteTypeSize = getContext().getTypeSizeInChars(DeleteTy);
 1801     CharUnits DeleteTypeAlign = getContext().toCharUnitsFromBits(
 1802         getContext().getTypeAlignIfKnown(DeleteTy));
 1993     CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType);
 2048              = getContext().getAsConstantArrayType(DeleteTy)) {
 2149         CGM.GetAddrOfRTTIDescriptor(E->getTypeOperand(getContext()));
tools/clang/lib/CodeGen/CGExprComplex.cpp
   99     S->dump(CGF.getContext().getSourceManager());
  407   if (E->getCallReturnType(CGF.getContext())->isReferenceType())
  638   QualType FQTy = CGF.getContext().getFunctionType(Op.Ty, ArgsQTys, EPI);
  906         CGF.getContext()
  910     assert(CGF.getContext()
  927       if (!CGF.getContext().hasSameUnqualifiedType(ComplexElementTy, LHSTy))
  974   assert(CGF.getContext().hasSameUnqualifiedType(E->getLHS()->getType(),
tools/clang/lib/CodeGen/CGExprScalar.cpp
  427     S->dump(CGF.getContext().getSourceManager());
  577     if (E->getCallReturnType(CGF.getContext())->isReferenceType())
  644     auto &Ctx = CGF.getContext();
  722         if (CanElideOverflowCheck(CGF.getContext(), Ops))
  730         !CanElideOverflowCheck(CGF.getContext(), Ops))
  884     CGF.getContext().getFloatTypeSemantics(OrigSrcType);
  889   unsigned Width = CGF.getContext().getIntWidth(DstType);
  920       CGF.getContext().getFloatTypeSemantics(SrcType);
 1206   SrcType = CGF.getContext().getCanonicalType(SrcType);
 1207   DstType = CGF.getContext().getCanonicalType(DstType);
 1223   if (SrcType->isHalfType() && !CGF.getContext().getLangOpts().NativeHalfType) {
 1226       if (CGF.getContext().getTargetInfo().useFP16ConversionIntrinsics())
 1234       if (CGF.getContext().getTargetInfo().useFP16ConversionIntrinsics()) {
 1242       SrcType = CGF.getContext().FloatTy;
 1346   if (DstType->isHalfType() && !CGF.getContext().getLangOpts().NativeHalfType) {
 1351       if (CGF.getContext().getTargetInfo().useFP16ConversionIntrinsics())
 1387     if (CGF.getContext().getTargetInfo().useFP16ConversionIntrinsics()) {
 1412       CGF.getContext().getFixedPointSemantics(SrcTy);
 1414       CGF.getContext().getFixedPointSemantics(DstTy);
 1633     llvm::APSInt Idx = E->getShuffleMaskIdx(CGF.getContext(), i-2);
 1651   SrcType = CGF.getContext().getCanonicalType(SrcType);
 1652   DstType = CGF.getContext().getCanonicalType(DstType);
 1725     if (E->EvaluateAsInt(Result, CGF.getContext(), Expr::SE_AllowSideEffects)) {
 2039     if (E->EvaluateAsRValue(Result, CGF.getContext()) &&
 2155     assert(CGF.getContext().hasSameUnqualifiedType(E->getType(), DestTy));
 2441           = CGF.getContext().getAsVariableArrayType(type)) {
 2493     if (type->isHalfType() && !CGF.getContext().getLangOpts().NativeHalfType) {
 2495       if (CGF.getContext().getTargetInfo().useFP16ConversionIntrinsics()) {
 2529     if (type->isHalfType() && !CGF.getContext().getLangOpts().NativeHalfType) {
 2530       if (CGF.getContext().getTargetInfo().useFP16ConversionIntrinsics()) {
 2545     CharUnits size = CGF.getContext().getTypeSizeInChars(OPT->getObjectType());
 2638   if (E->EvaluateAsInt(EVResult, CGF.getContext())) {
 2661           CGF.getContext().getAsArrayType(CurrentType)->getElementType();
 2665           CGF.getContext().getTypeSizeInChars(CurrentType).getQuantity());
 2675       const ASTRecordLayout &RL = CGF.getContext().getASTRecordLayout(RD);
 2690                           CGF.getContext().getCharWidth();
 2708       const ASTRecordLayout &RL = CGF.getContext().getASTRecordLayout(RD);
 2734           CGF.getContext().getAsVariableArrayType(TypeToSize)) {
 2748       CharUnits eltSize = CGF.getContext().getTypeSizeInChars(VlaSize.Type);
 2756         CGF.getContext()
 2757             .toCharUnitsFromBits(CGF.getContext().getOpenMPDefaultSimdAlign(
 2765   return Builder.getInt(E->EvaluateKnownConstInt(CGF.getContext()));
 2974       !IsWidenedIntegerOp(CGF.getContext(), BO->getLHS()) &&
 3198   if (BinaryOperator::isNullPointerArithmeticExtension(CGF.getContext(),
 3226       = CGF.CGM.getSize(CGF.getContext().getTypeSizeInChars(objectType));
 3237         = CGF.getContext().getAsVariableArrayType(elementType)) {
 3354       if (CanElideOverflowCheck(CGF.getContext(), op))
 3362       !CanElideOverflowCheck(CGF.getContext(), op))
 3394   ASTContext &Ctx = CGF.getContext();
 3499         if (CanElideOverflowCheck(CGF.getContext(), op))
 3507         !CanElideOverflowCheck(CGF.getContext(), op))
 3546         = CGF.getContext().getAsVariableArrayType(elementType)) {
 3552     CharUnits eltSize = CGF.getContext().getTypeSizeInChars(elementType);
 3566       elementSize = CGF.getContext().getTypeSizeInChars(elementType);
 3815           E->getType() == CGF.getContext().BoolTy)
 3817       return EmitScalarConversion(Result, CGF.getContext().BoolTy, E->getType(),
 3868       assert(CGF.getContext().hasSameUnqualifiedType(CETy,
 3875       assert(CGF.getContext().hasSameUnqualifiedType(CETy, RHSTy) &&
 3899   return EmitScalarConversion(Result, CGF.getContext().BoolTy, E->getType(),
 4141   return E->IgnoreParens()->isEvaluatable(CGF.getContext());
tools/clang/lib/CodeGen/CGNonTrivialStruct.cpp
  341     ASTContext &Ctx = CGF.getContext();
  531           Size.getQuantity() * this->CGF->getContext().getCharWidth());
  808   GenDefaultInitialize Gen(getContext());
  854   GenDefaultInitializeFuncName GenName(DstPtr.getAlignment(), getContext());
  856   callSpecialFunction(GenDefaultInitialize(getContext()), FuncName, QT,
  879                                 getContext());
  881   callSpecialFunction(GenDestructor(getContext()), FuncName, QT, IsVolatile,
  890                                    SrcPtr.getAlignment(), getContext());
  892   callSpecialFunction(GenCopyConstructor(getContext()), FuncName, QT,
  904                                    SrcPtr.getAlignment(), getContext());
  906   callSpecialFunction(GenCopyAssignment(getContext()), FuncName, QT, IsVolatile,
  915                                   SrcPtr.getAlignment(), getContext());
  917   callSpecialFunction(GenMoveConstructor(getContext()), FuncName, QT,
  929                                   SrcPtr.getAlignment(), getContext());
  931   callSpecialFunction(GenMoveAssignment(getContext()), FuncName, QT, IsVolatile,
tools/clang/lib/CodeGen/CGObjC.cpp
   97     getContext().getObjCEncodingForType(ValueType, Str);
  660                                                       CGF.getContext().VoidTy,
  728   ASTContext &Context = CGF.getContext();
  744   CharUnits size = CGF.getContext().getTypeSizeInChars(ivar->getType());
 1001   args.add(RValue::get(returnAddr), CGF.getContext().VoidPtrTy);
 1008   args.add(RValue::get(ivarAddr), CGF.getContext().VoidPtrTy);
 1011   args.add(RValue::get(AtomicHelperFn), CGF.getContext().VoidPtrTy);
 1017       CGF.getTypes().arrangeBuiltinFunctionCall(CGF.getContext().VoidTy, args),
 1029       auto *ret = ReturnStmt::Create(getContext(), SourceLocation(),
 1060     uint64_t ivarSize = getContext().toBits(strategy.getIvarSize());
 1108     args.add(RValue::get(self), getContext().getObjCIdType());
 1109     args.add(RValue::get(cmd), getContext().getObjCSelType());
 1110     args.add(RValue::get(ivarOffset), getContext().getPointerDiffType());
 1112              getContext().BoolTy);
 1118                              getContext().getObjCIdType(), args),
 1211   args.add(RValue::get(ivarAddr), CGF.getContext().VoidPtrTy);
 1215   DeclRefExpr argRef(CGF.getContext(), argVar, false,
 1220   args.add(RValue::get(argAddr), CGF.getContext().VoidPtrTy);
 1224     CGF.CGM.getSize(CGF.getContext().getTypeSizeInChars(ivar->getType()));
 1225   args.add(RValue::get(size), CGF.getContext().getSizeType());
 1228   args.add(RValue::get(CGF.Builder.getTrue()), CGF.getContext().BoolTy);
 1232   args.add(RValue::get(CGF.Builder.getFalse()), CGF.getContext().BoolTy);
 1237       CGF.getTypes().arrangeBuiltinFunctionCall(CGF.getContext().VoidTy, args),
 1257   args.add(RValue::get(ivarAddr), CGF.getContext().VoidPtrTy);
 1261   DeclRefExpr argRef(CGF.getContext(), argVar, false,
 1266   args.add(RValue::get(argAddr), CGF.getContext().VoidPtrTy);
 1269   args.add(RValue::get(AtomicHelperFn), CGF.getContext().VoidPtrTy);
 1275       CGF.getTypes().arrangeBuiltinFunctionCall(CGF.getContext().VoidTy, args),
 1348                             getContext().toBits(strategy.getIvarSize()));
 1399     args.add(RValue::get(self), getContext().getObjCIdType());
 1400     args.add(RValue::get(cmd), getContext().getObjCSelType());
 1402       args.add(RValue::get(arg), getContext().getObjCIdType());
 1403       args.add(RValue::get(ivarOffset), getContext().getPointerDiffType());
 1405       EmitCall(getTypes().arrangeBuiltinFunctionCall(getContext().VoidTy, args),
 1408       args.add(RValue::get(ivarOffset), getContext().getPointerDiffType());
 1409       args.add(RValue::get(arg), getContext().getObjCIdType());
 1411                getContext().BoolTy);
 1413                getContext().BoolTy);
 1417       EmitCall(getTypes().arrangeBuiltinFunctionCall(getContext().VoidTy, args),
 1434   DeclRefExpr self(getContext(), selfDecl, false, selfDecl->getType(),
 1445   DeclRefExpr arg(getContext(), argDecl, false, argType, VK_LValue,
 1474   if (!getContext().hasSameUnqualifiedType(ivarRef.getType(),
 1608   DeclRefExpr DRE(getContext(), Self,
 1618     getContext().getCanonicalType(selfDecl->getType()));
 1663     getContext().getConstantArrayType(getContext().getObjCIdType(),
 1663     getContext().getConstantArrayType(getContext().getObjCIdType(),
 1688            getContext().getPointerType(StateTy));
 1696            getContext().getPointerType(ItemsTy));
 1699   llvm::Type *NSUIntegerTy = ConvertType(getContext().getNSUIntegerType());
 1701   Args.add(RValue::get(Count), getContext().getNSUIntegerType());
 1706                                                getContext().getNSUIntegerType(),
 1774                           ConvertType(getContext().getObjCIdType()));
 1776   Args2.add(RValue::get(V), getContext().getObjCIdType());
 1780           CGM.getTypes().arrangeBuiltinFunctionCall(getContext().VoidTy, Args2),
 1796     DeclRefExpr tempDRE(getContext(), const_cast<VarDecl *>(D), false,
 1880                                                getContext().getNSUIntegerType(),
 2533   Selector AllocSel = getContext().Selectors.getSelector(0, &II);
 2537                                 getContext().getObjCIdType(),
 2543   Selector InitSel = getContext().Selectors.getSelector(0, &II);
 2546                                 getContext().getObjCIdType(),
 2580   Selector DrainSel = getContext().Selectors.getSelector(0, &II);
 2583                               getContext().VoidTy, DrainSel, Arg, Args);
 3502   ASTContext &C = getContext();
 3543   DeclRefExpr DstExpr(getContext(), &DstDecl, false, DestTy, VK_RValue,
 3548   DeclRefExpr SrcExpr(getContext(), &SrcDecl, false, SrcTy, VK_RValue,
 3586   ASTContext &C = getContext();
 3626   DeclRefExpr SrcExpr(getContext(), &SrcDecl, false, SrcTy, VK_RValue,
 3652   DeclRefExpr DstExpr(getContext(), &DstDecl, false, DestTy, VK_RValue,
 3657     = getContext().getTypeAlignInChars(TheCXXConstructExpr->getType());
 3675   IdentifierInfo *CopyID = &getContext().Idents.get("copy");
 3677       getContext().Selectors.getNullarySelector(CopyID);
 3678   IdentifierInfo *AutoreleaseID = &getContext().Idents.get("autorelease");
 3680       getContext().Selectors.getNullarySelector(AutoreleaseID);
tools/clang/lib/CodeGen/CGObjCGNU.cpp
 2518   ActualArgs.add(RValue::get(cmd), CGF.getContext().getObjCSelType());
 2681   ActualArgs.add(RValue::get(cmd), CGF.getContext().getObjCSelType());
tools/clang/lib/CodeGen/CGObjCMac.cpp
 2103     CGM.getTypes().ConvertType(CGF.getContext().getObjCClassType());
 2123                          Receiver, CGF.getContext().getObjCIdType(),
 2152   ActualArgs.add(RValue::get(Sel), CGF.getContext().getObjCSelType());
 7235                             Receiver, CGF.getContext().getObjCIdType(),
 7239                       Receiver, CGF.getContext().getObjCIdType(),
 7461     CGM.getTypes().ConvertType(CGF.getContext().getObjCClassType());
tools/clang/lib/CodeGen/CGObjCRuntime.cpp
   92   uint64_t BitFieldSize = Ivar->getBitWidthValue(CGF.getContext());
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
  354       DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(VD),
  893   CharUnits ElementSize = CGF.getContext().getTypeSizeInChars(ElementTy);
 1028           CGF.getContext().getAsVariableArrayType(PrivateType)->getSizeExpr()),
 1047           CGF.getContext().getAsVariableArrayType(PrivateType)->getSizeExpr()),
 1069   if (CGF.getContext().getAsArrayType(PrivateVD->getType())) {
 1108          !CGF.getContext().hasSameType(BaseTy, ElTy)) {
 1132          !CGF.getContext().hasSameType(BaseTy, ElTy)) {
 1670     PresumedLoc PLoc = CGF.getContext().getSourceManager().getPresumedLoc(Loc);
 3125       CGF.getContext().getIntTypeForBitwidth(/*DestWidth*/ 32, /*Signed*/ true);
 3281   Address Addr = Address(Ptr, CGF.getContext().getDeclAlign(Var));
 3470         CGF.getContext(), ChunkSize,
 3471         CGF.getContext().getIntTypeForBitwidth(32, /*Signed=*/0),
 3792       Call, CGF.getContext().getIntTypeForBitwidth(32, /*Signed=*/1),
 3793       CGF.getContext().BoolTy, Loc);
 4754   ASTContext &C = CGF.getContext();
 5430                                CGF.getContext().VoidPtrTy);
 5497   CharUnits ElementSize = CGF.getContext().getTypeSizeInChars(ElementTy);
 5616           CGF.getContext().getAsVariableArrayType(PrivTy);
 5762                  CGF.getContext().getAsVariableArrayType((*IPriv)->getType()))
 6617         CGOpenMPRuntime::getSingleCompoundChild(CGF.getContext(), Body);
 6721       CGF.getContext(), CS->getCapturedStmt());
 6742           if (Cond->EvaluateAsBooleanCondition(Result, CGF.getContext())) {
 6836         CGF.getContext(), CS->getCapturedStmt());
 6866             CGF.getContext(), CS->getCapturedStmt());
 6893         CGF.getContext(), CS->getCapturedStmt());
 6933         if (Cond->EvaluateAsBooleanCondition(Result, CGF.getContext())) {
 7209                                              CGF.getContext().getSizeType(),
 7219                                        CGF.getContext().getSizeType(),
 7308     if (!Length->EvaluateAsInt(Result, CGF.getContext()))
 7630           CharUnits TypeSize = CGF.getContext().getTypeSizeInChars(
 7763       if (Cap.getCapturedVar()->getType().isConstant(CGF.getContext()) &&
 7817       if (Base->isEmpty() || CGF.getContext()
 7842       if (!Field->isBitField() && !Field->isZeroSize(CGF.getContext())) {
 8174     Address VDAddr = Address(Arg, CGF.getContext().getDeclAlign(VD));
 8188           CGF.Builder.CreateIntCast(CGF.getTypeSize(CGF.getContext().VoidPtrTy),
 8275           CGF.Builder.CreateIntCast(CGF.getTypeSize(CGF.getContext().VoidPtrTy),
 8515           VD->getType().isConstant(CGF.getContext())) {
 8521             Address(CV, CGF.getContext().getTypeAlignInChars(ElementType)),
 8530               CV, ElementType, CGF.getContext().getDeclAlign(VD),
 8561   ASTContext &Ctx = CGF.getContext();
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
  435         CGF.getContext(), EscapedDeclsForParallel, EscapedDeclsForTeams,
 2562       ASTContext &Ctx = CGF.getContext();
 2764       CGF.getContext().getIntTypeForBitwidth(/*DestWidth=*/32, /*Signed=*/0);
 2813   assert(!CGF.getContext().getTypeSizeInChars(CastTy).isZero() &&
 2815   assert(!CGF.getContext().getTypeSizeInChars(ValTy).isZero() &&
 2820   if (CGF.getContext().getTypeSizeInChars(ValTy) ==
 2821       CGF.getContext().getTypeSizeInChars(CastTy))
 2845   CharUnits Size = CGF.getContext().getTypeSizeInChars(ElemType);
 2854   QualType CastTy = CGF.getContext().getIntTypeForBitwidth(
 2871   CharUnits Size = CGF.getContext().getTypeSizeInChars(ElemType);
 2889     QualType IntType = CGF.getContext().getIntTypeForBitwidth(
 2890         CGF.getContext().toBits(CharUnits::fromQuantity(IntSize)),
 3795                  CGF.getContext().getAsVariableArrayType((*IPriv)->getType()))
 3995                  CGF.getContext().getAsVariableArrayType((*IPriv)->getType()))
 4317                  CGF.getContext().getAsVariableArrayType((*IPriv)->getType()))
 4490       CGF.getContext().getTargetAddressSpace(NativePointeeTy);
 4603         GlobalArgs, CGF.getContext()
 4604                         .getPointerType(CGF.getContext().getPointerType(
 4605                             CGF.getContext().VoidPtrTy))
 4616         CGF.getContext().getPointerType(CGF.getContext().getSizeType()),
 4616         CGF.getContext().getPointerType(CGF.getContext().getSizeType()),
 4626         CGF.getContext().getPointerType(CGF.getContext().getSizeType()),
 4626         CGF.getContext().getPointerType(CGF.getContext().getSizeType()),
 4632     ASTContext &CGFContext = CGF.getContext();
 4825         CGF.getContext().getIntTypeForBitwidth(32, /*Signed=*/0),
 4840   ChunkExpr = IntegerLiteral::Create(CGF.getContext(), ChunkSize,
 4841       CGF.getContext().getIntTypeForBitwidth(32, /*Signed=*/0),
tools/clang/lib/CodeGen/CGStmt.cpp
  381   PrettyStackTraceLoc CrashInfo(getContext().getSourceManager(),S.getLBracLoc(),
 1130   if (!RV || RV->isEvaluatable(getContext()))
 1177   llvm::APSInt LHS = S.getLHS()->EvaluateKnownConstInt(getContext());
 1178   llvm::APSInt RHS = S.getRHS()->EvaluateKnownConstInt(getContext());
 1270     Builder.getInt(S.getLHS()->EvaluateKnownConstInt(getContext()));
 1318       Builder.getInt(CurCase->getLHS()->EvaluateKnownConstInt(getContext()));
 1598                                    getContext(), Case)) {
 1857       InputExpr->EvaluateAsRValue(EVResult, getContext(), true);
 1861                                           getContext()))
 1866     if (InputExpr->EvaluateAsInt(Result, getContext()))
 1875   InputExpr = InputExpr->IgnoreParenNoopCasts(getContext());
 1963   std::string AsmString = S.generateAsmString(getContext());
 2025     OutExpr = OutExpr->IgnoreParenNoopCasts(getContext());
 2047         unsigned Size = getContext().getTypeSize(OutExpr->getType());
 2069         uint64_t InputSize = getContext().getTypeSize(InputTy);
 2070         if (getContext().getTypeSize(OutputType) < InputSize) {
 2155         InputConstraint, *InputExpr->IgnoreParenNoopCasts(getContext()),
 2171       if (getContext().getTypeSize(OutputType) >
 2172           getContext().getTypeSize(InputTy)) {
 2332       unsigned Size = getContext().getTypeSize(ResultRegQualTys[i]);
 2335       QualType Ty = getContext().getIntTypeForBitwidth(Size, /*Signed*/ false);
 2351   QualType RecordTy = getContext().getRecordType(RD);
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
   74             CGF.getContext(), const_cast<VarDecl *>(VD),
  138                           CGF.ConvertTypeForMem(CGF.getContext().getPointerType(
  140                       CGF.getContext().getDeclAlign(OrigVD)));
  226           DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(VD),
  257       DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD), IsCaptured,
  266   ASTContext &C = getContext();
  305         ASTContext &Ctx = getContext();
  334   ASTContext &Ctx = CGF.getContext();
  665   CharUnits ElementSize = getContext().getTypeSizeInChars(ElementTy);
  777       if (DeviceConstTarget && OrigVD->getType().isConstant(getContext()) &&
  792         DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD),
  922             getContext().getTargetInfo().isTLSSupported()) {
  925           DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(VD), true,
  933                     getContext().getDeclAlign(VD));
 1000           DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD),
 1180       bool IsArray = getContext().getAsArrayType(Type) != nullptr;
 1455         DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD),
 1500       DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(OrigVD),
 1535             CGF.getContext()
 1536                 .toCharUnitsFromBits(CGF.getContext().getOpenMPDefaultSimdAlign(
 1570         DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(VD),
 1738         DeclRefExpr DRE(getContext(), const_cast<VarDecl *>(PrivateVD),
 1874   const unsigned IVSize = getContext().getTypeSize(IVExpr->getType());
 2037   const unsigned IVSize = getContext().getTypeSize(IVExpr->getType());
 2093   const unsigned IVSize = getContext().getTypeSize(IVExpr->getType());
 2416         if (ChunkExpr->EvaluateAsInt(Result, getContext())) {
 2421       const unsigned IVSize = getContext().getTypeSize(IVExpr->getType());
 2554   const unsigned IVSize = CGF.getContext().getTypeSize(IVExpr->getType());
 2613     ASTContext &C = CGF.getContext();
 2903         getContext().getIntTypeForBitwidth(/*DestWidth=*/32, /*Signed=*/1),
 3001             CGF.getContext().getPointerType(E->getType()), ".priv.ptr.addr");
 3008             CGF.CreateMemTemp(CGF.getContext().getPointerType(E->getType()),
 3016             CGF.CreateMemTemp(CGF.getContext().getPointerType(E->getType()),
 3025         DeclRefExpr DRE(CGF.getContext(), const_cast<VarDecl *>(OrigVD),
 3036                             CGF.getContext().getDeclAlign(Pair.first));
 3058                         Replacement.getPointer(), CGF.getContext().VoidPtrTy,
 3059                         CGF.getContext().getPointerType(
 3110                 Replacement.getPointer(), CGF.getContext().VoidPtrTy,
 3111                 CGF.getContext().getPointerType(InRedPrivs[Cnt]->getType()),
 3168   QualType SharedsTy = getContext().getRecordType(CS->getCapturedRecordDecl());
 3193         getContext(), getContext().getTranslationUnitDecl(), /*NumParams=*/0);
 3193         getContext(), getContext().getTranslationUnitDecl(), /*NumParams=*/0);
 3195     QualType BaseAndPointersType = getContext().getConstantArrayType(
 3196         getContext().VoidPtrTy, ArrSize, nullptr, ArrayType::Normal,
 3199         getContext(), Data, BaseAndPointersType, CD, S.getBeginLoc());
 3201         getContext(), Data, BaseAndPointersType, CD, S.getBeginLoc());
 3202     QualType SizesType = getContext().getConstantArrayType(
 3203         getContext().getIntTypeForBitwidth(/*DestWidth=*/64, /*Signed=*/1),
 3206     SVD = createImplicitFirstprivateForType(getContext(), Data, SizesType, CD,
 3239             CGF.CreateMemTemp(CGF.getContext().getPointerType(E->getType()),
 3248                             CGF.getContext().getDeclAlign(Pair.first));
 3271   IntegerLiteral IfCond(getContext(), TrueOrFalse,
 3272                         getContext().getIntTypeForBitwidth(32, /*Signed=*/0),
 3283   QualType SharedsTy = getContext().getRecordType(CS->getCapturedRecordDecl());
 3469       const unsigned IVSize = getContext().getTypeSize(IVExpr->getType());
 3752   ASTContext &Context = CGF.getContext();
 4672           getContext().getPointerType(OrigVD->getType().getNonReferenceType());
 4969   QualType SharedsTy = getContext().getRecordType(CS->getCapturedRecordDecl());
tools/clang/lib/CodeGen/CodeGenFunction.cpp
  126       return getContext().toCharUnitsFromBits(Align);
  144       Alignment = getContext().getTypeAlignInChars(T);
  153           !getContext().isAlignmentRequired(T))
  164   return LValue::MakeAddr(Address(V, Alignment), T, getContext(), BaseInfo,
  728     if (matchesStlAllocatorFn(D, getContext()))
  788           getContext().getFunctionTypeWithExceptionSpec(FD->getType(),
  806     auto Nullability = FnRetTy->getNullability(getContext());
  861     QualType FnType = getContext().getFunctionType(
 1005                     getContext().getTypeAlignInChars(ThisTy->getPointeeType()),
 1115           getContext(), Param->getDeclContext(), Param->getLocation(),
 1116           /*Id=*/nullptr, getContext().getSizeType(), ImplicitParamDecl::Other);
 1221         shouldUseUndefinedBehaviorReturnOptimization(FD, getContext());
 1349   if (!Cond->EvaluateAsInt(Result, getContext()))
 1579   CharUnits baseSize = CGF.getContext().getTypeSizeInChars(baseType);
 1633   CharUnits size = getContext().getTypeSizeInChars(Ty);
 1643                                           getContext().getAsArrayType(Ty))) {
 1646       CharUnits eltSize = getContext().getTypeSizeInChars(VlaSize.Type);
 1664     if (vla) Ty = getContext().getBaseElementType(vla);
 1735       arrayType = getContext().getAsArrayType(elementType);
 1773     arrayType = getContext().getAsArrayType(arrayType->getElementType());
 1786       arrayType = getContext().getAsArrayType(eltType);
 1811   const VariableArrayType *vla = getContext().getAsVariableArrayType(type);
 1835   } while ((type = getContext().getAsVariableArrayType(elementType)));
 1842   const VariableArrayType *vla = getContext().getAsVariableArrayType(type);
 1974       type = type.getSingleStepDesugaredType(getContext());
 2001   if (getContext().getBuiltinVaListType()->isArrayType())
 2289   assert((getContext().getTargetInfo().getTriple().getArch() ==
 2291           getContext().getTargetInfo().getTriple().getArch() ==
 2295   bool SupportsIFunc = getContext().getTargetInfo().supportsIFunc();
tools/clang/lib/CodeGen/CodeGenFunction.h
 2039     return ConvertType(getContext().getTypeDeclType(T));
 2125     return LValue::MakeAddr(Addr, T, getContext(), LValueBaseInfo(Source),
 2131     return LValue::MakeAddr(Addr, T, getContext(), BaseInfo, TBAAInfo);
 2136     return LValue::MakeAddr(Address(V, Alignment), T, getContext(),
 2142     return LValue::MakeAddr(Address(V, Alignment), T, getContext(),
 4270                  getContext()
 4273                      getContext()
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
 1255   CharUnits ExnAlign = CGF.getContext().getExnObjectAlignment();
 1287     CGF.ConvertType(CGF.getContext().getPointerDiffType());
 1402       CGF.ConvertType(CGF.getContext().getPointerDiffType());
 1415       computeOffsetHint(CGF.getContext(), SrcDecl, DestDecl).getQuantity());
 1446       CGF.ConvertType(CGF.getContext().getPointerDiffType());
 1926         CGF.ConvertType(CGF.getContext().getPointerDiffType());
 2730                             CGF.getContext().getDeclAlign(VD));
tools/clang/lib/CodeGen/TargetInfo.cpp
  627     auto TyInfo = CGF.getContext().getTypeInfoInChars(Ty);
 1208   uint64_t RetWidth = CGF.getContext().getTypeSize(ReturnSlot.getType());
 3691   CharUnits Align = CGF.getContext().getTypeAlignInChars(Ty);
 3708   uint64_t SizeInBytes = (CGF.getContext().getTypeSize(Ty) + 7) / 8;
 3908                           CGF.getContext().getTypeInfoInChars(Ty),
 4119                           CGF.getContext().getTypeInfoInChars(Ty),
 4294       auto TypeInfo = CGF.getContext().getTypeInfoInChars(Ty);
 4304     CharUnits Align = CGF.getContext().getTypeAlignInChars(Ty);
 5582                           CGF.getContext().getTypeInfoInChars(Ty),