• Home
  • Raw
  • Download

Lines Matching refs:CGM

47 CGDebugInfo::CGDebugInfo(CodeGenModule &CGM)  in CGDebugInfo()  argument
48 : CGM(CGM), DebugKind(CGM.getCodeGenOpts().getDebugInfo()), in CGDebugInfo()
49 DebugTypeExtRefs(CGM.getCodeGenOpts().DebugTypeExtRefs), in CGDebugInfo()
50 DBuilder(CGM.getModule()) { in CGDebugInfo()
51 for (const auto &KV : CGM.getCodeGenOpts().DebugPrefixMap) in CGDebugInfo()
127 CurLoc = CGM.getContext().getSourceManager().getExpansionLoc(Loc); in setLocation()
135 SourceManager &SM = CGM.getContext().getSourceManager(); in setLocation()
177 return getOrCreateType(CGM.getContext().getTypeDeclType(RDecl), in getContextDescriptor()
195 CGM.getCodeGenOpts().EmitCodeView; in getFunctionName()
202 PrintingPolicy Policy(CGM.getLangOpts()); in getFunctionName()
203 Policy.MSVCFormatting = CGM.getCodeGenOpts().EmitCodeView; in getFunctionName()
263 RD->getNameForDiagnostic(OS, CGM.getContext().getPrintingPolicy(), in getClassName()
277 if (CGM.getCodeGenOpts().EmitCodeView) { in getClassName()
286 if (CGM.getLangOpts().CPlusPlus) { in getClassName()
289 ASTContext &Context = CGM.getContext(); in getClassName()
318 SourceManager &SM = CGM.getContext().getSourceManager(); in getOrCreateFile()
358 SourceManager &SM = CGM.getContext().getSourceManager(); in getLineNumber()
365 if (!Force && !CGM.getCodeGenOpts().DebugColumnInfo) in getColumnNumber()
371 SourceManager &SM = CGM.getContext().getSourceManager(); in getColumnNumber()
377 if (!CGM.getCodeGenOpts().DebugCompilationDir.empty()) in getCurrentDirname()
378 return CGM.getCodeGenOpts().DebugCompilationDir; in getCurrentDirname()
397 SourceManager &SM = CGM.getContext().getSourceManager(); in CreateCompileUnit()
398 std::string MainFileName = CGM.getCodeGenOpts().MainFileName; in CreateCompileUnit()
417 const LangOptions &LO = CGM.getLangOpts(); in CreateCompileUnit()
459 Producer, LO.Optimize, CGM.getCodeGenOpts().DwarfDebugFlags, RuntimeVers, in CreateCompileUnit()
460 CGM.getCodeGenOpts().SplitDwarfFile, EmissionKind, 0 /* DWOid */); in CreateCompileUnit()
496 unsigned Size = CGM.getContext().getTypeSize(CGM.getContext().VoidPtrTy); in CreateType()
525 "opencl_sampler_t", CGM.getContext().getTypeSize(BT), in CreateType()
526 CGM.getContext().getTypeAlign(BT), llvm::dwarf::DW_ATE_unsigned); in CreateType()
597 BTName = BT->getName(CGM.getLangOpts()); in CreateType()
601 uint64_t Size = CGM.getContext().getTypeSize(BT); in CreateType()
602 uint64_t Align = CGM.getContext().getTypeAlign(BT); in CreateType()
612 uint64_t Size = CGM.getContext().getTypeSize(Ty); in CreateType()
613 uint64_t Align = CGM.getContext().getTypeAlign(Ty); in CreateType()
644 auto *FromTy = getOrCreateType(Qc.apply(CGM.getContext(), T), Unit); in CreateQualifiedType()
658 return getOrCreateType(CGM.getContext().getObjCIdType(), Unit); in CreateType()
685 CodeGenModule &CGM, in getUniqueTagTypeName() argument
696 CGM.getCXXABI().getMangleContext().mangleCXXRTTIName(QualType(Ty, 0), Out); in getUniqueTagTypeName()
720 if (llvm::DIType *T = getTypeOrNull(CGM.getContext().getRecordType(RD))) in getOrCreateRecordFwdDecl()
731 Size = CGM.getContext().getTypeSize(Ty); in getOrCreateRecordFwdDecl()
732 Align = CGM.getContext().getTypeAlign(Ty); in getOrCreateRecordFwdDecl()
736 SmallString<256> FullName = getUniqueTagTypeName(Ty, CGM, TheCU); in getOrCreateRecordFwdDecl()
753 unsigned AS = CGM.getContext().getTargetAddressSpace(PointeeTy); in CreatePointerLikeType()
754 uint64_t Size = CGM.getTarget().getPointerWidth(AS); in CreatePointerLikeType()
755 uint64_t Align = CGM.getContext().getTypeAlign(Ty); in CreatePointerLikeType()
772 unsigned Size = CGM.getContext().getTypeSize(CGM.getContext().VoidPtrTy); in getOrCreateStructPtrType()
786 FType = CGM.getContext().UnsignedLongTy; in CreateType()
801 uint64_t Size = CGM.getContext().getTypeSize(Ty); in CreateType()
806 FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy); in CreateType()
808 FType = CGM.getContext().IntTy; in CreateType()
811 FType = CGM.getContext().getPointerType(Ty->getPointeeType()); in CreateType()
814 FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy); in CreateType()
815 FieldSize = CGM.getContext().getTypeSize(Ty); in CreateType()
816 FieldAlign = CGM.getContext().getTypeAlign(Ty); in CreateType()
842 Ty->getTemplateName().print(OS, CGM.getContext().getPrintingPolicy(), in CreateType()
847 CGM.getContext().getPrintingPolicy()); in CreateType()
967 CGM.getTypes().getCGRecordLayout(RD).getBitFieldInfo(BitFieldDecl); in createBitFieldType()
970 unsigned AlignInBits = CGM.getContext().getTypeAlign(Ty); in createBitFieldType()
972 CGM.getContext().toBits(BitFieldInfo.StorageOffset); in createBitFieldType()
994 TypeInfo TI = CGM.getContext().getTypeInfo(type); in createFieldType()
1010 const ASTRecordLayout &layout = CGM.getContext().getASTRecordLayout(CXXDecl); in CollectRecordLambdaFields()
1060 C = llvm::ConstantInt::get(CGM.getLLVMContext(), Value->getInt()); in CreateRecordStaticField()
1062 C = llvm::ConstantFP::get(CGM.getLLVMContext(), Value->getFloat()); in CreateRecordStaticField()
1105 const ASTRecordLayout &layout = CGM.getContext().getASTRecordLayout(record); in CollectRecordFields()
1143 return getOrCreateInstanceMethodType(Method->getThisType(CGM.getContext()), in getOrCreateMethodType()
1166 unsigned AS = CGM.getContext().getTargetAddressSpace(PointeeTy); in getOrCreateInstanceMethodType()
1167 uint64_t Size = CGM.getTarget().getPointerWidth(AS); in getOrCreateInstanceMethodType()
1168 uint64_t Align = CGM.getContext().getTypeAlign(ThisPtrTy); in getOrCreateInstanceMethodType()
1228 MethodLinkageName = CGM.getMangledName(Method); in CreateCXXMemberFunction()
1251 if (CGM.getTarget().getCXXABI().isItaniumFamily()) { in CreateCXXMemberFunction()
1255 VIndex = CGM.getItaniumVTableContext().getMethodVTableIndex(Method); in CreateCXXMemberFunction()
1262 CGM.getMicrosoftVTableContext().getMethodVFTableLocation(GD); in CreateCXXMemberFunction()
1276 ThisAdjustment = CGM.getCXXABI() in CreateCXXMemberFunction()
1305 VIndex, ThisAdjustment, ContainingType, Flags, CGM.getLangOpts().Optimize, in CreateCXXMemberFunction()
1354 const ASTRecordLayout &RL = CGM.getContext().getASTRecordLayout(RD); in CollectCXXBases()
1363 if (CGM.getTarget().getCXXABI().isItaniumFamily()) { in CollectCXXBases()
1366 BaseOffset = 0 - CGM.getItaniumVTableContext() in CollectCXXBases()
1373 4 * CGM.getMicrosoftVTableContext().getVBTableIndex(RD, Base); in CollectCXXBases()
1377 BaseOffset = CGM.getContext().toBits(RL.getBaseClassOffset(Base)); in CollectCXXBases()
1408 llvm::ConstantInt::get(CGM.getLLVMContext(), TA.getAsIntegral()))); in CollectTemplateParams()
1412 QualType T = TA.getParamTypeForDecl().getDesugaredType(CGM.getContext()); in CollectTemplateParams()
1419 V = CGM.GetAddrOfGlobalVar(VD); in CollectTemplateParams()
1423 V = CGM.getCXXABI().EmitMemberFunctionPointer(MD); in CollectTemplateParams()
1425 V = CGM.GetAddrOfFunction(FD); in CollectTemplateParams()
1432 uint64_t fieldOffset = CGM.getContext().getFieldOffset(D); in CollectTemplateParams()
1434 CGM.getContext().toCharUnitsFromBits((int64_t)fieldOffset); in CollectTemplateParams()
1435 V = CGM.getCXXABI().EmitMemberDataPointer(MPT, chars); in CollectTemplateParams()
1455 V = CGM.getCXXABI().EmitNullMemberPointer(MPT); in CollectTemplateParams()
1457 V = llvm::ConstantInt::get(CGM.Int8Ty, 0); in CollectTemplateParams()
1475 T = CGM.getContext().getLValueReferenceType(T); in CollectTemplateParams()
1476 llvm::Constant *V = CGM.EmitConstantExpr(E, T); in CollectTemplateParams()
1520 ASTContext &Context = CGM.getContext(); in getOrCreateVTablePtrType()
1540 const ASTRecordLayout &RL = CGM.getContext().getASTRecordLayout(RD); in CollectVTableInfo()
1550 unsigned Size = CGM.getContext().getTypeSize(CGM.getContext().VoidPtrTy); in CollectVTableInfo()
1583 QualType Ty = CGM.getContext().getEnumType(ED); in completeType()
1595 !CGM.getLangOpts().CPlusPlus) in completeType()
1610 QualType Ty = CGM.getContext().getRecordType(RD); in completeRequiredType()
1619 QualType Ty = CGM.getContext().getRecordType(RD); in completeClassData()
1696 CGM.getLangOpts())) { in CreateType()
1844 const auto &PPOpts = CGM.getPreprocessorOpts(); in getOrCreateModuleRef()
1868 llvm::DIBuilder DIB(CGM.getModule()); in getOrCreateModuleRef()
1882 Mod.getPath(), CGM.getHeaderSearchOpts().Sysroot); in getOrCreateModuleRef()
1895 uint64_t Size = CGM.getContext().getTypeSize(Ty); in CreateTypeDefinition()
1896 uint64_t Align = CGM.getContext().getTypeAlign(Ty); in CreateTypeDefinition()
1920 getOrCreateType(CGM.getContext().getObjCInterfaceType(SClass), Unit); in CreateTypeDefinition()
1960 const ASTRecordLayout &RL = CGM.getContext().getASTObjCInterfaceLayout(ID); in CreateTypeDefinition()
1985 ? Field->getBitWidthValue(CGM.getContext()) in CreateTypeDefinition()
1986 : CGM.getContext().getTypeSize(FType); in CreateTypeDefinition()
1987 FieldAlign = CGM.getContext().getTypeAlign(FType); in CreateTypeDefinition()
1991 if (CGM.getLangOpts().ObjCRuntime.isNonFragile()) { in CreateTypeDefinition()
1997 CGM.getObjCRuntime().ComputeBitfieldBitOffset(CGM, ID, Field); in CreateTypeDefinition()
1998 FieldOffset %= CGM.getContext().getCharWidth(); in CreateTypeDefinition()
2060 uint64_t Size = CGM.getContext().getTypeSize(Ty); in CreateType()
2061 uint64_t Align = CGM.getContext().getTypeAlign(Ty); in CreateType()
2074 CGM.getContext().getTypeAlign(CGM.getContext().getBaseElementType(VAT)); in CreateType()
2080 Align = CGM.getContext().getTypeAlign(Ty->getElementType()); in CreateType()
2086 Size = CGM.getContext().getTypeSize(Ty); in CreateType()
2087 Align = CGM.getContext().getTypeAlign(Ty); in CreateType()
2136 Size = CGM.getContext().getTypeSize(Ty); in CreateType()
2139 if (CGM.getTarget().getCXXABI().isMicrosoft()) { in CreateType()
2165 getOrCreateInstanceMethodType(CGM.getContext().getPointerType(QualType( in CreateType()
2188 Size = CGM.getContext().getTypeSize(ED->getTypeForDecl()); in CreateEnumType()
2189 Align = CGM.getContext().getTypeAlign(ED->getTypeForDecl()); in CreateEnumType()
2192 SmallString<256> FullName = getUniqueTagTypeName(Ty, CGM, TheCU); in CreateEnumType()
2231 Size = CGM.getContext().getTypeSize(ED->getTypeForDecl()); in CreateTypeDefinition()
2232 Align = CGM.getContext().getTypeAlign(ED->getTypeForDecl()); in CreateTypeDefinition()
2235 SmallString<256> FullName = getUniqueTagTypeName(Ty, CGM, TheCU); in CreateTypeDefinition()
2316 Ty = UnwrapTypeForDebugInfo(Ty, CGM.getContext()); in getTypeOrNull()
2336 RetainedTypes.push_back(CGM.getContext().getRecordType(&SD).getAsOpaquePtr()); in completeTemplateDefinition()
2344 Ty = UnwrapTypeForDebugInfo(Ty, CGM.getContext()); in getOrCreateType()
2364 auto *Reader = CGM.getContext().getExternalSource(); in getParentModuleOrNull()
2380 FullSourceLoc Loc(D->getLocation(), CGM.getContext().getSourceManager()); in getParentModuleOrNull()
2516 getTypeOrNull(CGM.getContext().getRecordType(RD))); in CreateLimitedType()
2526 uint64_t Size = CGM.getContext().getTypeSize(Ty); in CreateLimitedType()
2527 uint64_t Align = CGM.getContext().getTypeAlign(Ty); in CreateLimitedType()
2529 SmallString<256> FullName = getUniqueTagTypeName(Ty, CGM, TheCU); in CreateLimitedType()
2573 const ASTRecordLayout &RL = CGM.getContext().getASTRecordLayout(RD); in CollectContainingType()
2577 const ASTRecordLayout &BRL = CGM.getContext().getASTRecordLayout(PBase); in CollectContainingType()
2596 uint64_t FieldSize = CGM.getContext().getTypeSize(FType); in CreateMemberType()
2597 unsigned FieldAlign = CGM.getContext().getTypeAlign(FType); in CreateMemberType()
2614 LinkageName = CGM.getMangledName(GD); in collectFunctionDeclProps()
2620 if (LinkageName == Name || (!CGM.getCodeGenOpts().EmitGcovArcs && in collectFunctionDeclProps()
2621 !CGM.getCodeGenOpts().EmitGcovNotes && in collectFunctionDeclProps()
2652 QualType ET = CGM.getContext().getAsArrayType(T)->getElementType(); in collectVarDeclProps()
2654 T = CGM.getContext().getConstantArrayType(ET, ConstVal, in collectVarDeclProps()
2661 LinkageName = CGM.getMangledName(VD); in collectVarDeclProps()
2680 DC = CGM.getContext().getTranslationUnitDecl(); in collectVarDeclProps()
2703 QualType FnType = CGM.getContext().getFunctionType( in getFunctionForwardDeclaration()
2708 /* isDefinition = */ false, 0, Flags, CGM.getLangOpts().Optimize, in getFunctionForwardDeclaration()
2743 return getOrCreateType(CGM.getContext().getTypeDeclType(TD), in getDeclarationOrDefinition()
2820 if (ResultTy == CGM.getContext().getObjCInstanceType()) in getOrCreateFunctionType()
2821 ResultTy = CGM.getContext().getPointerType( in getOrCreateFunctionType()
2836 getOrCreateType(CGM.getContext().getObjCSelType(), F))); in getOrCreateFunctionType()
2925 true /*definition*/, ScopeLine, Flags, CGM.getLangOpts().Optimize, in EmitFunctionStart()
2979 false /*definition*/, ScopeLine, Flags, CGM.getLangOpts().Optimize, in EmitFunctionDecl()
3059 FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy); in EmitTypeForVarWithBlocksAttr()
3062 FType = CGM.getContext().IntTy; in EmitTypeForVarWithBlocksAttr()
3066 bool HasCopyAndDispose = CGM.getContext().BlockRequiresCopying(Type, VD); in EmitTypeForVarWithBlocksAttr()
3068 FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy); in EmitTypeForVarWithBlocksAttr()
3076 if (CGM.getContext().getByrefLifetime(Type, Lifetime, in EmitTypeForVarWithBlocksAttr()
3079 FType = CGM.getContext().getPointerType(CGM.getContext().VoidTy); in EmitTypeForVarWithBlocksAttr()
3084 CharUnits Align = CGM.getContext().getDeclAlign(VD); in EmitTypeForVarWithBlocksAttr()
3085 if (Align > CGM.getContext().toCharUnitsFromBits( in EmitTypeForVarWithBlocksAttr()
3086 CGM.getTarget().getPointerAlign(0))) { in EmitTypeForVarWithBlocksAttr()
3088 CGM.getContext().toCharUnitsFromBits(FieldOffset); in EmitTypeForVarWithBlocksAttr()
3094 FType = CGM.getContext().getConstantArrayType(CGM.getContext().CharTy, in EmitTypeForVarWithBlocksAttr()
3102 FieldSize = CGM.getContext().getTypeSize(FType); in EmitTypeForVarWithBlocksAttr()
3103 FieldAlign = CGM.getContext().toBits(Align); in EmitTypeForVarWithBlocksAttr()
3176 offset = CGM.getContext().toCharUnitsFromBits( in EmitDeclare()
3177 CGM.getTarget().getPointerWidth(0)); in EmitDeclare()
3182 offset = CGM.getContext().toCharUnitsFromBits(XOffset); in EmitDeclare()
3221 Scope, FieldName, Unit, Line, FieldTy, CGM.getLangOpts().Optimize, in EmitDeclare()
3236 Ty, CGM.getLangOpts().Optimize, in EmitDeclare()
3239 CGM.getLangOpts().Optimize, Flags); in EmitDeclare()
3292 const llvm::DataLayout &target = CGM.getDataLayout(); in EmitDeclareOfBlockDeclRefVariable()
3308 CGM.getContext().toCharUnitsFromBits(target.getPointerSizeInBits(0)); in EmitDeclareOfBlockDeclRefVariable()
3313 offset = CGM.getContext().toCharUnitsFromBits(XOffset); in EmitDeclareOfBlockDeclRefVariable()
3355 ASTContext &C = CGM.getContext(); in EmitDeclareOfBlockLiteralArgVariable()
3368 CGM.getDataLayout().getStructLayout(block.StructureType); in EmitDeclareOfBlockLiteralArgVariable()
3381 auto FnPtrType = CGM.getContext().getPointerType(FnTy->desugar()); in EmitDeclareOfBlockLiteralArgVariable()
3468 << CGM.getUniqueBlockCount(); in EmitDeclareOfBlockLiteralArgVariable()
3474 CGM.getContext().toBits(block.BlockSize), in EmitDeclareOfBlockLiteralArgVariable()
3475 CGM.getContext().toBits(block.BlockAlign), 0, nullptr, fieldsArray); in EmitDeclareOfBlockLiteralArgVariable()
3476 type = DBuilder.createPointerType(type, CGM.PointerWidthInBits); in EmitDeclareOfBlockLiteralArgVariable()
3485 CGM.getLangOpts().Optimize, flags); in EmitDeclareOfBlockLiteralArgVariable()
3609 CGM.getContext().getRecordType(RD).getAsOpaquePtr()); in EmitGlobalVariable()
3631 if (CGM.getCodeGenOpts().getDebugInfo() < codegenoptions::LimitedDebugInfo) in EmitUsingDirective()
3635 CGM.getCodeGenOpts().DebugExplicitImport) { in EmitUsingDirective()
3644 if (CGM.getCodeGenOpts().getDebugInfo() < codegenoptions::LimitedDebugInfo) in EmitUsingDecl()
3659 if (CGM.getCodeGenOpts().getDebuggerTuning() != llvm::DebuggerKind::LLDB) in EmitImportDecl()
3672 if (CGM.getCodeGenOpts().getDebugInfo() < codegenoptions::LimitedDebugInfo) in EmitNamespaceAlias()
3767 if (CGM.getCodeGenOpts().getDebugInfo() < codegenoptions::LimitedDebugInfo) in EmitExplicitCastType()