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

References

tools/clang/lib/CodeGen/CGBlocks.cpp
  134     findBlockCapturedManagedEntities(BlockInfo, CGM.getContext().getLangOpts(),
  161       CGM.getContext().getObjCEncodingForBlock(BlockInfo.getBlockExpr());
  186   ASTContext &C = CGM.getContext();
  242     CGM.getContext().getObjCEncodingForBlock(blockInfo.getBlockExpr());
  455         CGM.getContext().getTargetAddressSpace(LangAS::opencl_generic);
  523   ASTContext &C = CGM.getContext();
  560       = CGM.getContext().getTypeInfoInChars(thisType);
  925   bool IsOpenCL = CGM.getContext().getLangOpts().OpenCL;
  931           CGM.getContext().getTargetAddressSpace(GenVoidPtrAddr)) /
 1190     getTypes().ConvertType(getContext().UnsignedLongTy);
 1212     AddrSpace = getContext().getTargetAddressSpace(LangAS::opencl_constant);
 1433   if (CGM.getContext().getLangOpts().OpenCL)
 1434     AddrSpace = CGM.getContext().getTargetAddressSpace(LangAS::opencl_global);
 1468   if (CGM.getContext().getLangOpts().OpenCL)
 1554   IdentifierInfo *II = &CGM.getContext().Idents.get(".block_descriptor");
 1814   ASTContext &Ctx = CGM.getContext();
 2598   T *copy = new (CGM.getContext()) T(std::forward<T>(generator));
 2624         CGM.getContext().getBlockVarCopyInit(&var).getCopyExpr();
 2681   } else if (CGM.getContext().isObjCNSObjectType(type) ||
 2951     IdentifierInfo &II = CGM.getContext().Idents.get(C->getName());
 2952     TranslationUnitDecl *TUDecl = CGM.getContext().getTranslationUnitDecl();
tools/clang/lib/CodeGen/CGBuiltin.cpp
 1513   return TypeRequiresBuiltinLaunderImp(CGM.getContext(), Ty, Seen);
 1537   if (E->EvaluateAsRValue(Result, CGM.getContext()) &&
 2123       ArgType = CGM.getContext().getObjCIdType();
 2362         CGM.getContext()
 2377         CGM.getContext().toCharUnitsFromBits(AlignmentInBits).getQuantity();
 2413     if (!E->getArg(2)->EvaluateAsInt(SizeResult, CGM.getContext()) ||
 2414         !E->getArg(3)->EvaluateAsInt(DstSizeResult, CGM.getContext()))
 2439     if (!E->getArg(2)->EvaluateAsInt(SizeResult, CGM.getContext()) ||
 2440         !E->getArg(3)->EvaluateAsInt(DstSizeResult, CGM.getContext()))
 2479     if (!E->getArg(2)->EvaluateAsInt(SizeResult, CGM.getContext()) ||
 2480         !E->getArg(3)->EvaluateAsInt(DstSizeResult, CGM.getContext()))
 3222         getIntegerWidthAndSignedness(CGM.getContext(), LeftArg->getType());
 3224         getIntegerWidthAndSignedness(CGM.getContext(), RightArg->getType());
 3226         getIntegerWidthAndSignedness(CGM.getContext(), ResultQTy);
 3722       CGM.getContext().getTargetAddressSpace(LangAS::opencl_generic));
 3724       CGM.getContext().getTargetAddressSpace(
 3849           CGM.getContext().getTargetAddressSpace(LangAS::opencl_generic));
 6020     if (!E->getArg(0)->EvaluateAsInt(Result, CGM.getContext()))
 7248     if (!E->getArg(0)->EvaluateAsInt(Result, CGM.getContext()))
tools/clang/lib/CodeGen/CGCUDANV.cpp
  157       DeviceMC(CGM.getContext().createMangleContext(
  158           CGM.getContext().getAuxTargetInfo())) {
  160   ASTContext &Ctx = CGM.getContext();
  231   assert((CGF.CGM.getContext().getAuxTargetInfo() &&
  232           (CGF.CGM.getContext().getAuxTargetInfo()->getCXXABI() !=
  233            CGF.CGM.getContext().getTargetInfo().getCXXABI())) ||
  275   TranslationUnitDecl *TUDecl = CGM.getContext().getTranslationUnitDecl();
  279       CGM.getContext().Idents.get(LaunchKernelName);
  354         CGM.getContext().getTypeInfoInChars(A->getType());
tools/clang/lib/CodeGen/CGCXXABI.cpp
   37   return CGM.getTypes().ConvertType(CGM.getContext().getPointerDiffType());
  103   return GetBogusMemberPointer(CGM.getContext().getMemberPointerType(
  127       CGM.getContext(), nullptr, MD->getLocation(),
  128       &CGM.getContext().Idents.get("this"), MD->getThisType(),
tools/clang/lib/CodeGen/CGCXXABI.h
   49     : CGM(CGM), MangleCtx(CGM.getContext().createMangleContext()) {}
   80   ASTContext &getContext() const { return CGM.getContext(); }
tools/clang/lib/CodeGen/CGCall.cpp
  347                                      ? CGM.getContext().VoidPtrTy
  413                                      ? CGM.getContext().VoidPtrTy
 1832   AddAttributesFromFunctionProtoType(getContext(), FuncAttrs,
 1855           getContext(), FuncAttrs, Fn->getType()->getAs<FunctionProtoType>());
 1956   ClangToLLVMArgMapping IRFunctionArgs(getContext(), FI);
 1992       RetAttrs.addDereferenceableAttr(getContext().getTypeSizeInChars(PTy)
 1994     else if (getContext().getTargetAddressSpace(PTy) == 0 &&
 2102         Attrs.addDereferenceableAttr(getContext().getTypeSizeInChars(PTy)
 2104       else if (getContext().getTargetAddressSpace(PTy) == 0 &&
 2127         auto info = getContext().getTypeInfoInChars(PTy);
 2245   ClangToLLVMArgMapping IRFunctionArgs(CGM.getContext(), FI);
 3850   ClangToLLVMArgMapping IRFunctionArgs(CGM.getContext(), CallInfo);
tools/clang/lib/CodeGen/CGClass.cpp
   40   auto &layout = getContext().getASTRecordLayout(RD);
   62   auto &baseLayout = getContext().getASTRecordLayout(vbaseClass);
   78   auto &baseLayout = getContext().getASTRecordLayout(baseDecl);
  154   const ASTContext &Context = getContext();
  188   Types.ConvertType(getContext().getPointerDiffType());
tools/clang/lib/CodeGen/CGCoroutine.cpp
  545   auto &TI = CGM.getContext().getTargetInfo();
tools/clang/lib/CodeGen/CGDebugInfo.cpp
  173   CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc);
  181   SourceManager &SM = CGM.getContext().getSourceManager();
  222       return getOrCreateType(CGM.getContext().getTypeDeclType(RDecl),
  228   PrintingPolicy PP = CGM.getContext().getPrintingPolicy();
  345       ASTContext &Context = CGM.getContext();
  376   SourceManager &SM = CGM.getContext().getSourceManager();
  411   SourceManager &SM = CGM.getContext().getSourceManager();
  489   SourceManager &SM = CGM.getContext().getSourceManager();
  502   SourceManager &SM = CGM.getContext().getSourceManager();
  531   SourceManager &SM = CGM.getContext().getSourceManager();
  665     unsigned Size = CGM.getContext().getTypeSize(CGM.getContext().VoidPtrTy);
  665     unsigned Size = CGM.getContext().getTypeSize(CGM.getContext().VoidPtrTy);
  717     auto Name = BT->getName(CGM.getContext().getPrintingPolicy());
  720     return CreateType(cast<const BuiltinType>(CGM.getContext().IntTy));
  816   uint64_t Size = CGM.getContext().getTypeSize(BT);
  826   uint64_t Size = CGM.getContext().getTypeSize(Ty);
  857   auto *FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit);
  871     return getOrCreateType(CGM.getContext().getObjCIdType(), Unit);
  976   if (llvm::DIType *T = getTypeOrNull(CGM.getContext().getRecordType(RD)))
 1007   unsigned AddressSpace = CGM.getContext().getTargetAddressSpace(PointeeTy);
 1009   auto Align = getTypeAlignIfRequired(Ty, CGM.getContext());
 1028   unsigned Size = CGM.getContext().getTypeSize(CGM.getContext().VoidPtrTy);
 1028   unsigned Size = CGM.getContext().getTypeSize(CGM.getContext().VoidPtrTy);
 1046     FType = CGM.getContext().IntTy;
 1050     FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy);
 1050     FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy);
 1052     FType = CGM.getContext().IntTy;
 1055     FType = CGM.getContext().getPointerType(Ty->getPointeeType());
 1057     FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy);
 1057     FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy);
 1058     uint64_t FieldSize = CGM.getContext().getTypeSize(Ty);
 1059     uint32_t FieldAlign = CGM.getContext().getTypeAlign(Ty);
 1077   FType = CGM.getContext().UnsignedLongTy;
 1091   uint64_t Size = CGM.getContext().getTypeSize(Ty);
 1262       CGM.getContext().toBits(BitFieldInfo.StorageOffset);
 1290     TypeInfo TI = CGM.getContext().getTypeInfo(type);
 1293       Align = getTypeAlignIfRequired(type, CGM.getContext());
 1307   const ASTRecordLayout &layout = CGM.getContext().getASTRecordLayout(CXXDecl);
 1320       auto Align = getDeclAlignIfRequired(V, CGM.getContext());
 1365   auto Align = getDeclAlignIfRequired(Var, CGM.getContext());
 1387     auto Align = getDeclAlignIfRequired(field, CGM.getContext());
 1398   QualType Ty = CGM.getContext().getTypeDeclType(TD);
 1416     const ASTRecordLayout &layout = CGM.getContext().getASTRecordLayout(record);
 1493     unsigned AS = CGM.getContext().getTargetAddressSpace(PointeeTy);
 1495     auto Align = getTypeAlignIfRequired(ThisPtrTy, CGM.getContext());
 1703   const ASTRecordLayout &RL = CGM.getContext().getASTRecordLayout(RD);
 1726         VBPtrOffset = CGM.getContext()
 1733       BaseOffset = CGM.getContext().toBits(RL.getBaseClassOffset(Base));
 1768       QualType T = TA.getParamTypeForDecl().getDesugaredType(CGM.getContext());
 1793           uint64_t fieldOffset = CGM.getContext().getFieldOffset(D);
 1795               CGM.getContext().toCharUnitsFromBits((int64_t)fieldOffset);
 1837         T = CGM.getContext().getLValueReferenceType(T);
 1897   ASTContext &Context = CGM.getContext();
 1982   const ASTRecordLayout &RL = CGM.getContext().getASTRecordLayout(RD);
 1994         CGM.getContext().getTypeSize(CGM.getContext().VoidPtrTy);
 1994         CGM.getContext().getTypeSize(CGM.getContext().VoidPtrTy);
 2020   unsigned Size = CGM.getContext().getTypeSize(CGM.getContext().VoidPtrTy);
 2020   unsigned Size = CGM.getContext().getTypeSize(CGM.getContext().VoidPtrTy);
 2067   QualType Ty = CGM.getContext().getEnumType(ED);
 2142   QualType Ty = CGM.getContext().getRecordType(RD);
 2212   QualType Ty = CGM.getContext().getRecordType(RD);
 2452   uint64_t Size = CGM.getContext().getTypeSize(Ty);
 2453   auto Align = getTypeAlignIfRequired(Ty, CGM.getContext());
 2477         getOrCreateType(CGM.getContext().getObjCInterfaceType(SClass), Unit);
 2518   const ASTRecordLayout &RL = CGM.getContext().getASTObjCInterfaceLayout(ID);
 2543                       ? Field->getBitWidthValue(CGM.getContext())
 2544                       : CGM.getContext().getTypeSize(FType);
 2545       FieldAlign = getTypeAlignIfRequired(FType, CGM.getContext());
 2556         FieldOffset %= CGM.getContext().getCharWidth();
 2622   uint64_t Size = CGM.getContext().getTypeSize(Ty);
 2623   auto Align = getTypeAlignIfRequired(Ty, CGM.getContext());
 2635     Align = getTypeAlignIfRequired(CGM.getContext().getBaseElementType(VAT),
 2636                                    CGM.getContext());
 2642       Align = getTypeAlignIfRequired(Ty->getElementType(), CGM.getContext());
 2648     Size = CGM.getContext().getTypeSize(Ty);
 2649     Align = getTypeAlignIfRequired(Ty, CGM.getContext());
 2671         if (Size->EvaluateAsInt(Result, CGM.getContext()))
 2709     Size = CGM.getContext().getTypeSize(Ty);
 2761     Size = CGM.getContext().getTypeSize(ED->getTypeForDecl());
 2762     Align = getDeclAlignIfRequired(ED, CGM.getContext());
 2804     Size = CGM.getContext().getTypeSize(ED->getTypeForDecl());
 2805     Align = getDeclAlignIfRequired(ED, CGM.getContext());
 2916   Ty = UnwrapTypeForDebugInfo(Ty, CGM.getContext());
 2942   RetainedTypes.push_back(CGM.getContext().getRecordType(&D).getAsOpaquePtr());
 2950   Ty = UnwrapTypeForDebugInfo(Ty, CGM.getContext());
 2970     auto *Reader = CGM.getContext().getExternalSource();
 3122       getTypeOrNull(CGM.getContext().getRecordType(RD)));
 3132   uint64_t Size = CGM.getContext().getTypeSize(Ty);
 3133   auto Align = getDeclAlignIfRequired(D, CGM.getContext());
 3197   const ASTRecordLayout &RL = CGM.getContext().getASTRecordLayout(RD);
 3201       const ASTRecordLayout &BRL = CGM.getContext().getASTRecordLayout(PBase);
 3220   uint64_t FieldSize = CGM.getContext().getTypeSize(FType);
 3221   auto FieldAlign = getTypeAlignIfRequired(FType, CGM.getContext());
 3282     QualType ET = CGM.getContext().getAsArrayType(T)->getElementType();
 3284     T = CGM.getContext().getConstantArrayType(ET, ConstVal, nullptr,
 3317     DC = CGM.getContext().getTranslationUnitDecl();
 3343   QualType FnType = CGM.getContext().getFunctionType(
 3390   auto Align = getDeclAlignIfRequired(VD, CGM.getContext());
 3407     return getOrCreateType(CGM.getContext().getTypeDeclType(TD),
 3487     if (ResultTy == CGM.getContext().getObjCInstanceType())
 3488       ResultTy = CGM.getContext().getPointerType(
 3504         getOrCreateType(CGM.getContext().getObjCSelType(), F)));
 3845   FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy);
 3845   FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy);
 3848   FType = CGM.getContext().IntTy;
 3852   bool HasCopyAndDispose = CGM.getContext().BlockRequiresCopying(Type, VD);
 3854     FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy);
 3854     FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy);
 3862   if (CGM.getContext().getByrefLifetime(Type, Lifetime,
 3865     FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy);
 3865     FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy);
 3870   CharUnits Align = CGM.getContext().getDeclAlign(VD);
 3871   if (Align > CGM.getContext().toCharUnitsFromBits(
 3874         CGM.getContext().toCharUnitsFromBits(FieldOffset);
 3880       FType = CGM.getContext().getConstantArrayType(
 3881           CGM.getContext().CharTy, pad, nullptr, ArrayType::Normal, 0);
 3888   FieldSize = CGM.getContext().getTypeSize(FType);
 3889   FieldAlign = CGM.getContext().toBits(Align);
 3944   auto Align = getDeclAlignIfRequired(VD, CGM.getContext());
 3946   unsigned AddressSpace = CGM.getContext().getTargetAddressSpace(VD->getType());
 3969       offset = CGM.getContext().toCharUnitsFromBits(
 3975       offset = CGM.getContext().toCharUnitsFromBits(XOffset);
 3999         auto FieldAlign = getDeclAlignIfRequired(Field, CGM.getContext());
 4132         CGM.getContext().toCharUnitsFromBits(target.getPointerSizeInBits(0));
 4137     offset = CGM.getContext().toCharUnitsFromBits(XOffset);
 4142   auto Align = getDeclAlignIfRequired(VD, CGM.getContext());
 4199     auto FnPtrType = CGM.getContext().getPointerType(FnTy->desugar());
 4218   ASTContext &C = CGM.getContext();
 4305       auto Align = getDeclAlignIfRequired(variable, CGM.getContext());
 4320                                 CGM.getContext().toBits(block.BlockSize), 0,
 4417     auto Align = getDeclAlignIfRequired(D, CGM.getContext());
 4421         CGM.getContext().getTargetAddressSpace(D->getType());
 4425             CGM.getContext().getTargetAddressSpace(LangAS::cuda_shared);
 4428             CGM.getContext().getTargetAddressSpace(LangAS::cuda_constant);
 4447   auto Align = getDeclAlignIfRequired(VD, CGM.getContext());
 4493         CGM.getContext().getRecordType(RD).getAsOpaquePtr());
 4500         cast<Decl>(CGM.getContext().getTranslationUnitDecl()), TheCU);
 4509   if (CGM.getContext().getTypeSize(VD->getType()) <= 64) {
 4737     analyzeParametersModification(CGM.getContext(), SPDefCache, ParamCache);
tools/clang/lib/CodeGen/CGDecl.cpp
  239   unsigned TargetAS = getContext().getTargetAddressSpace(AS);
  251       getModule(), LTy, Ty.isConstant(getContext()), Linkage, Init, Name,
  253   GV->setAlignment(getContext().getDeclAlign(&D).getAsAlign());
  269         LTy->getPointerTo(getContext().getTargetAddressSpace(ExpectedAS)));
  345                            CGM.getContext().getTargetAddressSpace(D.getType()));
 1106         getContext().getTargetAddressSpace(getStringLiteralAddressSpace());
tools/clang/lib/CodeGen/CGDeclCXX.cpp
  123           CGM.getContext().getTargetAddressSpace(DestAS));
  246                     CGM.getContext().VoidTy, fn, FI, FunctionArgList());
  486              getContext().GetGVALinkageForVariable(D) == GVA_DiscardableODR) {
tools/clang/lib/CodeGen/CGException.cpp
  574       QualType CaughtType = CGM.getContext().getUnqualifiedArrayType(
tools/clang/lib/CodeGen/CGExpr.cpp
  805     if (!CGM.getContext().getSanitizerBlacklist().isBlacklistedType(
 1595                 NSAPI(CGM.getContext()).isObjCBOOLType(Ty);
 2411           CGM.getContext().getFunctionNoProtoType(Proto->getReturnType());
 2412       NoProtoType = CGM.getContext().getPointerType(NoProtoType);
 2456   CharUnits Alignment = CGM.getContext().getDeclAlign(VD);
 3205   StartFunction(GlobalDecl(), CGM.getContext().VoidTy, F, FI, Args,
 3215                        CGM.getContext().VoidPtrTy, ArgData.getLocation());
 3218                        CGM.getContext().VoidPtrTy, ArgAddr.getLocation());
 3669     auto &C = CGM.getContext();
 4879              CGM.getContext().VoidPtrTy);
tools/clang/lib/CodeGen/CGExprAgg.cpp
  504           CGM.getContext().getTargetAddressSpace(AS));
  506       CharUnits Align = CGM.getContext().getTypeAlignInChars(ArrayQTy);
tools/clang/lib/CodeGen/CGExprConstant.cpp
  181   const ASTContext &Context = CGM.getContext();
  182   const uint64_t CharWidth = CGM.getContext().getCharWidth();
  575   const ASTContext &Context = CGM.getContext();
  591   uint64_t FieldSize = Field->getBitWidthValue(CGM.getContext());
  606                          CGM.getContext().toBits(StartOffset) + FieldOffset,
  617   auto CAT = Emitter.CGM.getContext().getAsConstantArrayType(Type);
  621   CharUnits ElemSize = Emitter.CGM.getContext().getTypeSizeInChars(ElemType);
  663   const ASTRecordLayout &Layout = CGM.getContext().getASTRecordLayout(RD);
  684     if (Field->isUnnamedBitfield() || Field->isZeroSize(CGM.getContext()))
  701         CharUnits Offset = CGM.getContext().toCharUnitsFromBits(
  764   const ASTRecordLayout &Layout = CGM.getContext().getASTRecordLayout(RD);
  800   uint64_t OffsetBits = CGM.getContext().toBits(Offset);
  810     if (Field->isUnnamedBitfield() || Field->isZeroSize(CGM.getContext()))
  887   CharUnits Align = CGM.getContext().getTypeAlignInChars(E->getType());
  908                     CGM.getContext().getTargetAddressSpace(addressSpace));
 1180     auto *CAT = CGM.getContext().getAsConstantArrayType(ILE->getType());
 1273         CGM.getContext().getBaseElementType(Ty)->castAs<RecordType>();
 1290       assert(CGM.getContext().hasSameUnqualifiedType(Ty, Arg->getType()) &&
 1309     CGM.getContext().getObjCEncodingForType(E->getEncodedType(), Str);
 1310     const ConstantArrayType *CAT = CGM.getContext().getAsConstantArrayType(T);
 1424                                          CGM.getContext().getTargetAddressSpace(DestAddressSpace));
 1590     return CGM.getContext().getQualifiedType(AT->getValueType(),
 1601     QualType Ty = CGM.getContext().getBaseElementType(D.getType());
 1675     uint64_t innerSize = CGM.getContext().getTypeSize(destValueType);
 1676     uint64_t outerSize = CGM.getContext().getTypeSize(destType);
 1705     Success = E->EvaluateAsLValue(Result, CGM.getContext());
 1707     Success = E->EvaluateAsRValue(Result, CGM.getContext(), InConstantContext);
 1989     T = E->getTypeOperand(CGM.getContext());
 2041         !CGM.getContext().getLangOpts().NativeHalfType &&
 2042         CGM.getContext().getTargetInfo().useFP16ConversionIntrinsics())
 2099         CGM.getContext().getAsConstantArrayType(DestType);
 2135       const ArrayType *AT = CGM.getContext().getAsArrayType(DestType);
 2182   uint64_t fieldOffset = getContext().getFieldOffset(decl);
 2183   CharUnits chars = getContext().toCharUnitsFromBits((int64_t) fieldOffset);
 2217           CGM.getContext().getASTRecordLayout(base).getNonVirtualSize()
 2231     if (!Field->isBitField() && !Field->isZeroSize(CGM.getContext())) {
tools/clang/lib/CodeGen/CGNonTrivialStruct.cpp
  305   ASTContext &Ctx = CGM.getContext();
  451     ASTContext &Ctx = CGM.getContext();
  937   ASTContext &Ctx = CGM.getContext();
  947   ASTContext &Ctx = CGM.getContext();
  959   ASTContext &Ctx = CGM.getContext();
  971   ASTContext &Ctx = CGM.getContext();
  983   ASTContext &Ctx = CGM.getContext();
  994   ASTContext &Ctx = CGM.getContext();
tools/clang/lib/CodeGen/CGObjC.cpp
  119   ASTContext &Context = CGM.getContext();
  130     QualType IdTy(CGM.getContext().getObjCIdType());
  836       CGM.getContext().getTypeInfoInChars(ivarType);
  899        CGM.getContext().getObjCGCAttrKind(ivarType))) {
 1573   MD->createImplicitParams(CGM.getContext(), IMP->getClassInterface());
 1594     QualType IdTy(CGM.getContext().getObjCIdType());
 1655     &CGM.getContext().Idents.get("countByEnumeratingWithState"),
 1656     &CGM.getContext().Idents.get("objects"),
 1657     &CGM.getContext().Idents.get("count")
 1660     CGM.getContext().Selectors.getSelector(llvm::array_lengthof(II), &II[0]);
 2532   IdentifierInfo *II = &CGM.getContext().Idents.get("alloc");
 2542   II = &CGM.getContext().Idents.get("init");
 2579   IdentifierInfo *II = &CGM.getContext().Idents.get("drain");
 3504     = &CGM.getContext().Idents.get("__assign_helper_atomic_property_");
 3588       &CGM.getContext().Idents.get("__copy_helper_atomic_property_");
tools/clang/lib/CodeGen/CGObjCGNU.cpp
  239         CGM.getContext().getObjCEncodingForPropertyDecl(PD, Container);
  289             CGM.getContext().getCharWidth());
  302     ASTContext &Context = CGM.getContext();
  603         CGM.getContext().getObjCEncodingForMethodDecl(M));
 1128     ASTContext &Context = CGM.getContext();
 1131       CGM.getContext().getObjCEncodingForPropertyDecl(property, OCD);
 1159     ASTContext &Context = CGM.getContext();
 1173         CGM.getContext().getCharWidth());
 1223         IdentifierInfo &II = CGM.getContext().Idents.get(Name);
 1224         TranslationUnitDecl *TUDecl = CGM.getContext().getTranslationUnitDecl();
 1665     CGM.getContext().getObjCEncodingForType(Ivar->getType(), TypeEncoding);
 1688     ASTContext &Context = CGM.getContext();
 1819           CGM.getContext().getCharWidth());
 1855             CGM.getContext().getTypeSizeInChars(ivarTy).getQuantity());
 2126       cgm.getContext().getTargetInfo().getTriple().isWindowsMSVCEnvironment();
 2130       Types.ConvertType(CGM.getContext().IntTy));
 2132       Types.ConvertType(CGM.getContext().LongTy));
 2134       Types.ConvertType(CGM.getContext().getSizeType()));
 2136       Types.ConvertType(CGM.getContext().getPointerDiffType()));
 2137   BoolTy = CGM.getTypes().ConvertType(CGM.getContext().BoolTy);
 2143       Types.ConvertType(CGM.getContext().getObjCProtoType()));
 2149   QualType selTy = CGM.getContext().getObjCSelType();
 2166   QualType UnqualIdTy = CGM.getContext().getObjCIdType();
 2169     ASTIdTy = CGM.getContext().getCanonicalType(UnqualIdTy);
 2245     RetainSel = GetNullarySelector("retain", CGM.getContext());
 2246     ReleaseSel = GetNullarySelector("release", CGM.getContext());
 2247     AutoreleaseSel = GetNullarySelector("autorelease", CGM.getContext());
 2301       IdentifierInfo &II = CGF.CGM.getContext().Idents.get("NSAutoreleasePool");
 2302       TranslationUnitDecl *TUDecl = CGM.getContext().getTranslationUnitDecl();
 2355   std::string SelTypes = CGM.getContext().getObjCEncodingForMethodDecl(Method);
 2791         CGM.getContext().getCharWidth());
 2807   ASTContext &Context = CGM.getContext();
 2936                       CGM.getContext().getCharWidth());
 2988   ASTContext &Context = CGM.getContext();
 3037     CGM.getTypes().ConvertType(CGM.getContext().getObjCProtoType());
 3285   ASTContext &Context = CGM.getContext();
 3375   ASTContext &Context = CGM.getContext();
 3766     SourceManager &SM = CGM.getContext().getSourceManager();
 4068     Interface = FindIvarInterface(CGM.getContext(), Interface, Ivar);
tools/clang/lib/CodeGen/CGObjCMac.cpp
  196       ASTContext &Ctx = CGM.getContext();
  234     ASTContext &Ctx = CGM.getContext();
  249     ASTContext &Ctx = CGM.getContext();
  268     ASTContext &Ctx = CGM.getContext();
  303     ASTContext &Ctx = CGM.getContext();
  323     ASTContext &Ctx = CGM.getContext();
  337     ASTContext &Ctx = CGM.getContext();
  349     ASTContext &Ctx = CGM.getContext();
 1551     IdentifierInfo* II = &CGM.getContext().Idents.get(name);
 1552     return CGM.getContext().Selectors.getSelector(0, &II);
 1556     IdentifierInfo* II = &CGM.getContext().Idents.get(name);
 1557     return CGM.getContext().Selectors.getSelector(1, &II);
 1901               CGM.getContext().getObjCIdRedefinitionType(), /*ForEH=*/true);
 1906              CGM.getContext().getObjCClassRedefinitionType(), /*ForEH=*/true);
 2159     assert(CGM.getContext().getCanonicalType(Method->getReturnType()) ==
 2160                CGM.getContext().getCanonicalType(ResultType) &&
 2424     Qualifiers::GC GCAttr = GetGCAttrTypeForType(CGM.getContext(), type);
 2427       assert(CGM.getContext().getTypeSize(type)
 2497     const ASTRecordLayout &RL = CGM.getContext().getASTRecordLayout(RD);
 2499       CGM.getContext().toCharUnitsFromBits(RL.getFieldOffset(i));
 2519     if (const ArrayType *Array = CGM.getContext().getAsArrayType(FQT)) {
 2524       while (const ArrayType *Array = CGM.getContext().getAsArrayType(FQT)) {
 2539           CharUnits Size = CGM.getContext().getTypeSizeInChars(RT);
 2549     CharUnits FieldSize = CGM.getContext().getTypeSizeInChars(Field->getType());
 2569         = LastFieldBitfieldOrUnnamed->getBitWidthValue(CGM.getContext());
 2583         = CGM.getContext().getTypeSizeInChars(LastFieldBitfieldOrUnnamed->getType());
 2947       fieldSize = CGM.getContext().getTypeSizeInChars(type);
 2989   LazySymbols.insert(&CGM.getContext().Idents.get("Protocol"));
 3023   ASTContext &ctx = CGF.CGM.getContext();
 3058   LazySymbols.insert(&CGM.getContext().Idents.get("Protocol"));
 3521       &CGM.getContext().Idents.get(ID->getObjCRuntimeNameAsString());
 3544     CGM.getContext().getASTObjCImplementationLayout(ID).getSize();
 4913     CGM.getTypes().ConvertType(CGM.getContext().LongTy),
 5111       &CGM.getContext().Idents.get(ID->getObjCRuntimeNameAsString());
 5116   IdentifierInfo *II = &CGM.getContext().Idents.get("NSAutoreleasePool");
 5177       recLayout = &CGM.getContext().getASTRecordLayout(RD);
 5179     return CGM.getContext().toCharUnitsFromBits(offsetInBits);
 5209   if (auto arrayType = CGM.getContext().getAsIncompleteArrayType(fieldType)) {
 5214   while (auto arrayType = CGM.getContext().getAsConstantArrayType(fieldType)) {
 5234       CharUnits eltSize = CGM.getContext().getTypeSizeInChars(recType);
 5250   Qualifiers::GC GCAttr = GetGCAttrTypeForType(CGM.getContext(), fieldType);
 5255     assert(CGM.getContext().getTypeSizeInChars(fieldType)
 5461     CGM.getContext().DeepCollectObjCIvars(OI, true, ivars);
 5501   return GetMethodVarName(CGM.getContext().Selectors.getNullarySelector(ID));
 5506   CGM.getContext().getObjCEncodingForType(Field->getType(), TypeStr, Field);
 5517     CGM.getContext().getObjCEncodingForMethodDecl(D, Extended);
 5539     CGM.getContext().getObjCEncodingForPropertyDecl(PD, Container);
 5540   return GetPropertyName(&CGM.getContext().Idents.get(TypeStr));
 5615   ASTContext &Ctx = CGM.getContext();
 5993   ASTContext &Ctx = CGM.getContext();
 6173         &CGM.getContext().Idents.get("countByEnumeratingWithState"),
 6174         &CGM.getContext().Idents.get("objects"),
 6175         &CGM.getContext().Idents.get("count")
 6178         CGM.getContext().Selectors.getSelector(3, KeyIdents));
 6340     CGM.getContext().getASTObjCImplementationLayout(OID);
 6349     InstanceStart = RL.getFieldOffset(0) / CGM.getContext().getCharWidth();
 6354   IdentifierInfo &II = CGM.getContext().Idents.get(Name);
 6355   TranslationUnitDecl *TUDecl = CGM.getContext().getTranslationUnitDecl();
 6463   if (hasObjCExceptionAttribute(CGM.getContext(), CI))
 6832     unsigned Align = CGM.getContext().getPreferredTypeAlign(
 7362   IdentifierInfo *II = &CGM.getContext().Idents.get("NSAutoreleasePool");
 7697     if (hasObjCExceptionAttribute(CGM.getContext(), ID)) {
 7741     if (hasObjCExceptionAttribute(CGM.getContext(), ID))
tools/clang/lib/CodeGen/CGObjCRuntime.cpp
   32   return CGM.getContext().lookupFieldBitOffset(OID, nullptr, Ivar) /
   33          CGM.getContext().getCharWidth();
   39   return CGM.getContext().lookupFieldBitOffset(OID->getClassInterface(), OID,
   41          CGM.getContext().getCharWidth();
   48   return CGM.getContext().lookupFieldBitOffset(ID, ID->getImplementation(),
   61       CGF.CGM.getContext().getObjCObjectPointerType(InterfaceTy);
   89       CGF.CGM.getContext().lookupFieldBitOffset(OID, nullptr, Ivar);
   90   uint64_t BitOffset = FieldBitOffset % CGF.CGM.getContext().getCharWidth();
   93   CharUnits StorageSize = CGF.CGM.getContext().toCharUnitsFromBits(
   95   CharUnits Alignment = CGF.CGM.getContext().toCharUnitsFromBits(AlignmentBits);
  103   CGBitFieldInfo *Info = new (CGF.CGM.getContext()) CGBitFieldInfo(
  105                              CGF.CGM.getContext().toBits(StorageSize),
tools/clang/lib/CodeGen/CGOpenCLRuntime.cpp
   38   uint32_t AddrSpc = CGM.getContext().getTargetAddressSpace(
   39       CGM.getContext().getOpenCLTypeAddrSpace(T));
   84       CGM.getContext().getTargetAddressSpace(
   85           CGM.getContext().getOpenCLTypeAddrSpace(T)));
   93       CGM.getContext().getTargetAddressSpace(
   94           CGM.getContext().getOpenCLTypeAddrSpace(T)));
  102   unsigned TypeSize = CGM.getContext()
  112   unsigned TypeSize = CGM.getContext()
  122       CGM.getContext().getTargetAddressSpace(LangAS::opencl_generic));
tools/clang/lib/CodeGen/CGOpenMPRuntime.cpp
 1245   ASTContext &C = CGM.getContext();
 1352   ASTContext &C = CGM.getContext();
 1551       Name, CGM.getContext().getAlignOfGlobalVarInChars(Ty), IsConstant,
 1568   CharUnits Align = CGM.getContext().getTypeAlignInChars(IdentQTy);
 1636   CharUnits Align = CGM.getContext().getTypeAlignInChars(IdentQTy);
 2428         CGM.getContext().getPointerType(getTgtBinaryDescriptorQTy());
 2438         CGM.getContext().getPointerType(getTgtBinaryDescriptorQTy());
 2683         getTargetEntryUniqueInfo(CGM.getContext(),
 2692       QualType PtrTy = CGM.getContext().getPointerType(VD->getType());
 2703     return Address(Ptr, CGM.getContext().getDeclAlign(VD));
 2711          !CGM.getContext().getTargetInfo().isTLSSupported());
 2723       CGM.getContext().getTargetInfo().isTLSSupported())
 2758       CGM.getContext().getTargetInfo().isTLSSupported())
 2761   VD = VD->getDefinition(CGM.getContext());
 2772       ImplicitParamDecl Dst(CGM.getContext(), /*DC=*/nullptr, Loc,
 2773                             /*Id=*/nullptr, CGM.getContext().VoidPtrTy,
 2778           CGM.getContext().VoidPtrTy, Args);
 2783       CtorCGF.StartFunction(GlobalDecl(), CGM.getContext().VoidPtrTy, Fn, FI,
 2787           CGM.getContext().VoidPtrTy, Dst.getLocation());
 2795           CGM.getContext().VoidPtrTy, Dst.getLocation());
 2805       ImplicitParamDecl Dst(CGM.getContext(), /*DC=*/nullptr, Loc,
 2806                             /*Id=*/nullptr, CGM.getContext().VoidPtrTy,
 2811           CGM.getContext().VoidTy, Args);
 2817       DtorCGF.StartFunction(GlobalDecl(), CGM.getContext().VoidTy, Fn, FI, Args,
 2823           /*Volatile=*/false, CGM.getContext().VoidPtrTy, Dst.getLocation());
 2862       InitCGF.StartFunction(GlobalDecl(), CGM.getContext().VoidTy, InitFunction,
 2886   VD = VD->getDefinition(CGM.getContext());
 2899   getTargetEntryUniqueInfo(CGM.getContext(), Loc, DeviceID, FileID, Line);
 2921       CtorCGF.StartFunction(GlobalDecl(), CGM.getContext().VoidTy, Fn, FI,
 2925                                Address(Addr, CGM.getContext().getDeclAlign(VD)),
 2959       DtorCGF.StartFunction(GlobalDecl(), CGM.getContext().VoidTy, Fn, FI,
 2964       DtorCGF.emitDestroy(Address(Addr, CGM.getContext().getDeclAlign(VD)),
 3292   ASTContext &C = CGM.getContext();
 3353   ASTContext &C = CGM.getContext();
 4103         for (auto I = CGM.getContext().getSourceManager().fileinfo_begin(),
 4104                   E = CGM.getContext().getSourceManager().fileinfo_end();
 4108             Loc = CGM.getContext().getSourceManager().translateFileLineCol(
 4292     ASTContext &C = CGM.getContext();
 4313     ASTContext &C = CGM.getContext();
 4343     ASTContext &C = CGM.getContext();
 4367     ASTContext &C = CGM.getContext();
 4397     ASTContext &C = CGM.getContext();
 4424   ASTContext &C = CGM.getContext();
 4453         CGM.getContext().getIntTypeForBitwidth(/*DestWidth=*/64, /*Signed=*/0);
 4455         CGM.getContext().getIntTypeForBitwidth(/*DestWidth=*/64, /*Signed=*/1);
 4469   ASTContext &C = CGM.getContext();
 4501   ASTContext &C = CGM.getContext();
 4603   ASTContext &C = CGM.getContext();
 4664   ASTContext &C = CGM.getContext();
 4885   ASTContext &C = CGM.getContext();
 4966   ASTContext &C = CGM.getContext();
 5197   ASTContext &C = CGM.getContext();
 5562   ASTContext &C = CGM.getContext();
 5717   ASTContext &C = CGM.getContext();
 6003   ASTContext &C = CGM.getContext();
 6026         CGF, CGM.getContext().getSizeType(),
 6029                                 CGM.getContext().getSizeType(), Loc);
 6039             CGF, CGM.getContext().VoidPtrTy,
 6043         CGM.getContext().VoidPtrTy.castAs<PointerType>()->getTypePtr());
 6044     SharedLVal = CGF.MakeAddrLValue(SharedAddr, CGM.getContext().VoidPtrTy);
 6048         CGM.getContext().VoidPtrTy);
 6075   ASTContext &C = CGM.getContext();
 6100         CGF, CGM.getContext().getSizeType(),
 6103                                 CGM.getContext().getSizeType(), Loc);
 6150   ASTContext &C = CGM.getContext();
 6173         CGF, CGM.getContext().getSizeType(),
 6176                                 CGM.getContext().getSizeType(), Loc);
 6201   ASTContext &C = CGM.getContext();
 6302         CGF, CGM.getContext().getSizeType(),
 6309         CGF, CGM.getContext().VoidPtrTy,
 6487   getTargetEntryUniqueInfo(CGM.getContext(), D.getBeginLoc(), DeviceID, FileID,
 8835   ASTContext &C = CGM.getContext();
 9144     TD = getNestedDistributeDirective(CGM.getContext(), D);
 9453     getTargetEntryUniqueInfo(CGM.getContext(), E.getBeginLoc(), DeviceID,
 9647   assert(VD->getType().isConstant(CGM.getContext()) &&
 9658     getTargetEntryUniqueInfo(CGM.getContext(), VD->getLocation(), DeviceID,
 9670   CharUnits VarSize = CGM.getContext().getTypeSizeInChars(Ty);
 9704     if (VD->hasDefinition(CGM.getContext()) != VarDecl::DeclarationOnly) {
 9705       VarSize = CGM.getContext().getTypeSizeInChars(VD->getType());
 9865   ASTContext &C = CGM.getContext();
10671   ASTContext &C = CGM.getContext();
10811   ASTContext &C = CGM.getContext();
10880       CGM.getContext().getIntTypeForBitwidth(/*DestWidth=*/64, /*Signed=*/1);
10882   QualType ArrayTy = CGM.getContext().getConstantArrayType(
10980   CharUnits Align = CGM.getContext().getDeclAlign(CVD);
10989     CharUnits Sz = CGM.getContext().getTypeSizeInChars(CVD->getType());
11016       CGF.ConvertTypeForMem(CGM.getContext().getPointerType(CVD->getType())),
11132   const FunctionDecl *NewFD = getDeclareVariantFunction(CGM.getContext(), D);
tools/clang/lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
 1184         CGM.getContext().getTargetAddressSpace(LangAS::cuda_shared));
 1279           !supportsLightweightRuntime(CGM.getContext(), D));
 1314         CGM.getContext().getTargetAddressSpace(LangAS::cuda_shared));
 1392   ASTContext &Ctx = CGM.getContext();
 1576     llvm::Type *RetTy = CGM.getTypes().ConvertType(CGM.getContext().BoolTy);
 1865   bool Mode = supportsSPMDExecutionMode(CGM.getContext(), D);
 2043     getTeamsReductionVars(CGM.getContext(), D, LastPrivatesReductions);
 2045     getDistributeLastprivateVars(CGM.getContext(), D, LastPrivatesReductions);
 2048           CGM.getContext(), llvm::None, LastPrivatesReductions,
 2121     QualType GlobalRecTy = CGM.getContext().getRecordType(GlobalizedVarsRecord);
 2129         CGM.getContext().getTypeAlignInChars(GlobalRecTy).getQuantity();
 2131         CGM.getContext().getTypeSizeInChars(GlobalRecTy).getQuantity();
 2168             CGM.getContext().getRecordType(SecGlobalizedVarsRecord);
 2175             CGM.getContext().getTypeAlignInChars(SecGlobalRecTy).getQuantity();
 2177             CGM.getContext().getTypeSizeInChars(SecGlobalRecTy).getQuantity();
 2206         QualType RDTy = CGM.getContext().getRecordType(RD);
 2208             CGM.getContext().getTypeAlignInChars(RDTy).getQuantity();
 2209         unsigned Size = CGM.getContext().getTypeSizeInChars(RDTy).getQuantity();
 2214           CGM.getContext().getTypeAlignInChars(GlobalRecTy).getQuantity();
 2226         QualType Int16Ty = CGM.getContext().getIntTypeForBitwidth(
 2230                     CGM.getContext().getTypeAlignInChars(Int16Ty)),
 2242             CGM.getContext().getSizeType(), Loc);
 2261           CGM.getContext()
 2262               .getPointerType(CGM.getContext().VoidPtrTy)
 2322             Address(Ptr, CGM.getContext().getDeclAlign(Rec.first)), VarTy,
 2364     CharUnits Align = CGM.getContext().getDeclAlign(VD);
 2382                                      CGM.getContext().getDeclAlign(VD),
 2430           QualType Int16Ty = CGM.getContext().getIntTypeForBitwidth(
 2434                       CGM.getContext().getTypeAlignInChars(Int16Ty)),
 2967   ASTContext &C = CGM.getContext();
 3171   ASTContext &C = CGM.getContext();
 3462   ASTContext &C = CGM.getContext();
 3627   ASTContext &C = CGM.getContext();
 3733   ASTContext &C = CGM.getContext();
 3827   ASTContext &C = CGM.getContext();
 3933   ASTContext &C = CGM.getContext();
 4288   ASTContext &C = CGM.getContext();
 4359         CGM.getContext(), PrivatesReductions, llvm::None, VarFieldMap,
 4452       PointeeTy = CGM.getContext().getAddrSpaceQualType(PointeeTy,
 4455                PointeeTy.isConstant(CGM.getContext())) {
 4456       PointeeTy = CGM.getContext().getAddrSpaceQualType(PointeeTy,
 4460   ArgType = CGM.getContext().getPointerType(PointeeTy);
 4464   ArgType = QC.apply(CGM.getContext(), ArgType);
 4467         CGM.getContext(), /*DC=*/nullptr, NativeParam->getLocation(),
 4470       CGM.getContext(),
 4540   ASTContext &Ctx = CGM.getContext();
 4757           CGM.getContext().getTargetAddressSpace(LangAS::cuda_constant));
 4758       CharUnits Align = CGM.getContext().getDeclAlign(VD);
 4769           CGM.getContext().getTargetAddressSpace(LangAS::cuda_shared));
 4770       CharUnits Align = CGM.getContext().getDeclAlign(VD);
 4781       CharUnits Align = CGM.getContext().getDeclAlign(VD);
 4898   return CGM.getContext().getTargetAddressSpace(LangAS::cuda_constant);
 5060     ASTContext &C = CGM.getContext();
 5169     ASTContext &C = CGM.getContext();
tools/clang/lib/CodeGen/CGStmt.cpp
  717   LoopStack.push(LoopHeader.getBlock(), CGM.getContext(), WhileAttrs,
  819   LoopStack.push(LoopBody, CGM.getContext(), DoAttrs,
  877   LoopStack.push(CondBlock, CGM.getContext(), ForAttrs,
  978   LoopStack.push(CondBlock, CGM.getContext(), ForAttrs,
 1893     const SourceManager &SM = CGF.CGM.getContext().getSourceManager();
 2407   ASTContext &Ctx = CGM.getContext();
tools/clang/lib/CodeGen/CGStmtOpenMP.cpp
  397   ASTContext &Ctx = CGM.getContext();
tools/clang/lib/CodeGen/CGVTT.cpp
   44   VTTBuilder Builder(CGM.getContext(), RD, /*GenerateDefinition=*/true);
  117   VTTBuilder Builder(CGM.getContext(), RD, /*GenerateDefinition=*/false);
  137   VTTBuilder Builder(CGM.getContext(), RD, /*GenerateDefinition=*/false);
  163   VTTBuilder Builder(CGM.getContext(), RD, /*GenerateDefinition=*/false);
tools/clang/lib/CodeGen/CGVTables.cpp
   31     : CGM(CGM), VTContext(CGM.getContext().getVTableContext()) {}
  247     ResultType = CGM.getContext().VoidTy;
  251     ResultType = CGM.getContext().VoidPtrTy;
  361                                   ? CGM.getContext().VoidPtrTy
  798       CGM.getContext().getTagDeclType(Base.getBase()));
  965   const CXXMethodDecl *keyFunction = CGM.getContext().getCurrentKeyFunction(RD);
tools/clang/lib/CodeGen/CodeGenFunction.cpp
 1095       ResTy = CGM.getContext().VoidPtrTy;
 2203         CGM.getContext().BuiltinInfo.getRequiredFeatures(BuiltinID);
 2211           << CGM.getContext().BuiltinInfo.getRequiredFeatures(BuiltinID);
tools/clang/lib/CodeGen/CodeGenFunction.h
 1617   ASTContext &getContext() const { return CGM.getContext(); }
tools/clang/lib/CodeGen/CodeGenModule.cpp
 1192   GVALinkage Linkage = getContext().GetGVALinkageForFunction(D);
 1619       if (getContext().GetGVALinkageForFunction(FD) != GVA_AvailableExternally)
 2190   SourceManager &SM = getContext().getSourceManager();
 2198   SourceManager &SM = getContext().getSourceManager();
 2234   const auto &SanitizerBL = getContext().getSanitizerBlacklist();
 2261   const auto &SanitizerBL = getContext().getSanitizerBlacklist();
 2275       std::string TypeStr = Ty.getAsString(getContext().getPrintingPolicy());
 2285   const auto &XRayFilter = getContext().getXRayFilter();
 2321   return getContext().DeclMustBeEmitted(Global);
 2348       getContext().getTargetInfo().isTLSSupported() && isa<VarDecl>(Global) &&
 2387   CharUnits Alignment = getContext().getDeclAlign(VD);
 2393     unsigned AS = getContext().getTargetAddressSpace(VD->getType());
 2805       FD->getNameForDiagnostic(OS, getContext().getPrintingPolicy(),
 2857     getContext().forEachMultiversionedFunctionVersion(
 3051             DeclTy, getContext().getTargetAddressSpace(FD->getType())),
 3460   auto TargetAddrSpace = getContext().getTargetAddressSpace(AddrSpace);
 3501     GV->setAlignment(getContext().getDeclAlign(D).getAsAlign());
 3515     if (getContext().isMSStaticDataMemberInlineDefinition(D)) {
 3579   assert(getContext().getTargetAddressSpace(ExpectedAS) ==
 3672     llvm::PointerType::get(Ty, getContext().getTargetAddressSpace(ASTTy));
 3684       getContext().getLangOpts().OpenCL
 3686                 Ty, getContext().getTargetAddressSpace(LangAS::opencl_global))
 3780                 CGM.getContext().getTargetAddressSpace(LangAS::Default)));
 3833     Linkage = CGM.getContext().GetGVALinkageForVariable(VD);
 3835     Linkage = CGM.getContext().GetGVALinkageForFunction(cast<FunctionDecl>(&D));
 3874       D->needsDestruction(getContext()) == QualType::DK_cxx_destructor;
 3958           getContext().getTargetAddressSpace(GetGlobalVarAddressSpace(D))) {
 4043   GV->setAlignment(getContext().getDeclAlign(D).getAsAlign());
 4249   GVALinkage Linkage = getContext().GetGVALinkageForVariable(VD);
 4630   const ASTContext &Context = getContext();
 4642     llvm::Type *Ty = getTypes().ConvertType(getContext().IntTy);
 4888   unsigned AddrSpace = CGM.getContext().getTargetAddressSpace(
 4912   CharUnits Alignment = getContext().getAlignOfGlobalVarInChars(S->getType());
 4960   getContext().getObjCEncodingForType(E->getEncodedType(), Str);
 4972     getContext().getAlignOfGlobalVarInChars(getContext().CharTy);
 4972     getContext().getAlignOfGlobalVarInChars(getContext().CharTy);
 5014   CharUnits Align = getContext().getTypeAlignInChars(MaterializedType);
 5034     Value = getContext().getMaterializedTemporaryValue(E, false);
 5039   if (!Value && Init->EvaluateAsRValue(EvalResult, getContext()) &&
 5079   auto TargetAS = getContext().getTargetAddressSpace(AddrSpace);
 5095             getContext().getTargetAddressSpace(LangAS::Default)));
 5153     IdentifierInfo *II = &getContext().Idents.get(".cxx_destruct");
 5154     Selector cxxSelector = getContext().Selectors.getSelector(0, &II);
 5156       ObjCMethodDecl::Create(getContext(), D->getLocation(), D->getLocation(),
 5157                              cxxSelector, getContext().VoidTy, nullptr, D,
 5172   IdentifierInfo *II = &getContext().Idents.get(".cxx_construct");
 5173   Selector cxxSelector = getContext().Selectors.getSelector(0, &II);
 5175   ObjCMethodDecl *CTORMethod = ObjCMethodDecl::Create(getContext(),
 5179                                                 getContext().getObjCIdType(),
 5340         DI->getOrCreateInterfaceType(getContext().getObjCInterfaceType(
 5484     SourceManager &SM = getContext().getSourceManager();
 5753         !VD->getAnyInitializer()->isConstantInitializer(getContext(),
 5756     Address Addr(GetAddrOfGlobalVar(VD), getContext().getDeclAlign(VD));
 5827   return CreateMetadataIdentifierImpl(GeneralizeFunctionType(getContext(), T),
tools/clang/lib/CodeGen/CodeGenPGO.cpp
  789     SourceManager &SM = CGM.getContext().getSourceManager();
  823   const auto &SM = CGM.getContext().getSourceManager();
  835                                 CGM.getContext().getSourceManager(),
  856                                 CGM.getContext().getSourceManager(),
tools/clang/lib/CodeGen/CodeGenTypes.cpp
   32   : CGM(cgm), Context(cgm.getContext()), TheModule(cgm.getModule()),
  524       auto Name = BT->getName(CGM.getContext().getPrintingPolicy());
tools/clang/lib/CodeGen/CoverageMappingGen.cpp
 1278       CGM.getContext().getTargetInfo().getTriple().getObjectFormat());
tools/clang/lib/CodeGen/ItaniumCXXABI.cpp
  533     if (CGM.getContext().getTargetInfo().getTriple().getArch()
 1154     auto Align = CGM.getContext().getTypeAlignInChars(FI.getReturnType());
 1643       CGM.GetAddrOfRTTIDescriptor(CGM.getContext().getTagDeclType(RD));
 1788         VTableIndex * CGM.getContext().getTargetInfo().getPointerWidth(0) / 8);
 1990                   CGM.getContext().getTypeAlignInChars(elementType));
 2075                   CGM.getContext().getTypeAlignInChars(elementType));
 2122     llvm::FunctionType::get(CGM.getTypes().ConvertType(CGM.getContext().IntTy),
 2427     ASTContext &Ctx = getContext();
 2456   if (D.isNoDestroy(CGM.getContext()))
 2706       CharUnits Align = CGM.getContext().getDeclAlign(VD);
 2867   auto Align = CGM.getContext().getTypeAlignInChars(CGM.getContext().CharTy);
 2867   auto Align = CGM.getContext().getTypeAlignInChars(CGM.getContext().CharTy);
 3044   ASTContext &Context = CGM.getContext();
 3263     CGM.getTypes().ConvertType(CGM.getContext().getPointerDiffType());
 3315           !CGM.getContext()
 3516       CGM.getContext().toCharUnitsFromBits(CGM.getTarget().getPointerAlign(0));
 3566   QualType SuperTy = CGM.getContext().getObjCInterfaceType(Super);
 3650     CGM.getTypes().ConvertType(CGM.getContext().UnsignedIntTy);
 3690   QualType OffsetFlagsTy = CGM.getContext().LongTy;
 3691   const TargetInfo &TI = CGM.getContext().getTargetInfo();
 3693     OffsetFlagsTy = CGM.getContext().LongLongTy;
 3715       const ASTRecordLayout &Layout = CGM.getContext().getASTRecordLayout(RD);
 3767   unsigned Flags = extractPBaseFlags(CGM.getContext(), PointeeTy);
 3770     CGM.getTypes().ConvertType(CGM.getContext().UnsignedIntTy);
 3790   unsigned Flags = extractPBaseFlags(CGM.getContext(), PointeeTy);
 3797     CGM.getTypes().ConvertType(CGM.getContext().UnsignedIntTy);
 4096     CGF.CGM.getContext().getCanonicalType(CatchParam.getType());
tools/clang/lib/CodeGen/MicrosoftCXXABI.cpp
 1097     CharUnits Align = CGM.getContext().getTypeAlignInChars(FI.getReturnType());
 1889         ML.Index * CGM.getContext().getTargetInfo().getPointerWidth(0) / 8);
 2061       CGM.getContext().getTypeAlignInChars(CGM.getContext().IntTy);
 2061       CGM.getContext().getTypeAlignInChars(CGM.getContext().IntTy);
 2279   if (D.isNoDestroy(CGM.getContext()))
 3507       : CGM(ABI.CGM), Context(CGM.getContext()),
 3509         Linkage(getLinkageForRTTI(CGM.getContext().getTagDeclType(RD))),
 4008       RD ? CGM.getContext().getCopyConstructorForExceptionObject(RD) : nullptr;
tools/clang/lib/CodeGen/PatternInit.cpp
   24       CGM.getContext().getTargetInfo().getMaxPointerWidth() < 64
   47     unsigned PtrWidth = CGM.getContext().getTargetInfo().getPointerWidth(
tools/clang/lib/CodeGen/SanitizerMetadata.cpp
   91   PresumedLoc PLoc = CGM.getContext().getSourceManager().getPresumedLoc(Loc);
tools/clang/lib/CodeGen/SwiftCallingConv.cpp
   74     auto arrayType = CGM.getContext().getAsConstantArrayType(type);
   78     auto eltSize = CGM.getContext().getTypeSizeInChars(eltType);
   86     auto eltSize = CGM.getContext().getTypeSizeInChars(eltType);
   94     addOpaqueData(begin, begin + CGM.getContext().getTypeSizeInChars(type));
  106   addTypedData(record, begin, CGM.getContext().getASTRecordLayout(record));
  156               begin + CGM.getContext().toCharUnitsFromBits(fieldOffsetInBits));
  174   auto &ctx = CGM.getContext();
  530                                CGM.getContext().toBits(unitSize));
  640   return CGM.getContext().toCharUnitsFromBits(
  641            CGM.getContext().getTargetInfo().getPointerWidth(0));
  668     return CGM.getContext().getTargetInfo().hasInt128Type();
  801     auto &layout = CGM.getContext().getASTRecordLayout(record);
  825     CharUnits alignment = CGM.getContext().getTypeAlignInChars(type);
tools/clang/lib/CodeGen/TargetInfo.cpp
 6496       MaxThreads = Attr->getMaxThreads()->EvaluateKnownConstInt(M.getContext());
 6505         MinBlocks = Attr->getMinBlocks()->EvaluateKnownConstInt(M.getContext());
 7975                 ->EvaluateKnownConstInt(M.getContext())
 7978                 ->EvaluateKnownConstInt(M.getContext())
 7998         Attr->getMin()->EvaluateKnownConstInt(M.getContext()).getExtValue();
 8000                                         ->EvaluateKnownConstInt(M.getContext())
 8042   if (CGM.getContext().getTargetNullPointerValue(QT) == 0)
 8045   auto &Ctx = CGM.getContext();
 8059       CGM.getContext().getTargetAddressSpace(LangAS::opencl_global));
 8927       OS << Field->getBitWidthValue(CGM.getContext());