Lines Matching defs:CGDebugInfo

1 //===--- CGDebugInfo.cpp - Emit Debug Information for a Module ------------===//
13 #include "CGDebugInfo.h"
82 CGDebugInfo::CGDebugInfo(CodeGenModule &CGM)
89 CGDebugInfo::~CGDebugInfo() {
171 "CGDebugInfo and IRBuilder are out of sync");
184 void CGDebugInfo::setLocation(SourceLocation Loc) {
215 llvm::DIScope *CGDebugInfo::getDeclContextDescriptor(const Decl *D) {
221 llvm::DIScope *CGDebugInfo::getContextDescriptor(const Decl *Context,
243 PrintingPolicy CGDebugInfo::getPrintingPolicy() const {
271 StringRef CGDebugInfo::getFunctionName(const FunctionDecl *FD) {
275 StringRef CGDebugInfo::getObjCMethodName(const ObjCMethodDecl *OMD) {
299 StringRef CGDebugInfo::getSelectorName(Selector S) {
303 StringRef CGDebugInfo::getClassName(const RecordDecl *RD) {
359 CGDebugInfo::computeChecksum(FileID FID, SmallString<64> &Checksum) const {
386 std::optional<StringRef> CGDebugInfo::getSource(const SourceManager &SM,
400 llvm::DIFile *CGDebugInfo::getOrCreateFile(SourceLocation Loc) {
443 llvm::DIFile *CGDebugInfo::createFile(
483 std::string CGDebugInfo::remapDIPath(StringRef Path) const {
491 unsigned CGDebugInfo::getLineNumber(SourceLocation Loc) {
498 unsigned CGDebugInfo::getColumnNumber(SourceLocation Loc, bool Force) {
511 StringRef CGDebugInfo::getCurrentDirname() {
524 void CGDebugInfo::CreateCompileUnit() {
673 llvm::DIType *CGDebugInfo::CreateType(const BuiltinType *BT) {
962 llvm::DIType *CGDebugInfo::CreateType(const BitIntType *Ty) {
973 llvm::DIType *CGDebugInfo::CreateType(const ComplexType *Ty) {
1007 llvm::DIType *CGDebugInfo::CreateQualifiedType(QualType Ty,
1029 llvm::DIType *CGDebugInfo::CreateQualifiedType(const FunctionProtoType *F,
1053 llvm::DIType *CGDebugInfo::CreateType(const ObjCObjectPointerType *Ty,
1066 llvm::DIType *CGDebugInfo::CreateType(const PointerType *Ty,
1162 CGDebugInfo::getOrCreateRecordFwdDecl(const RecordType *Ty,
1207 llvm::DIType *CGDebugInfo::CreatePointerLikeType(llvm::dwarf::Tag Tag,
1247 llvm::DIType *CGDebugInfo::getOrCreateStructPtrType(StringRef Name,
1258 uint64_t CGDebugInfo::collectDefaultElementTypesForBlockPointer(
1294 llvm::DIType *CGDebugInfo::CreateType(const BlockPointerType *Ty,
1373 llvm::DIType *CGDebugInfo::CreateType(const TemplateSpecializationType *Ty,
1481 llvm::DIType *CGDebugInfo::CreateType(const TypedefType *Ty,
1570 llvm::DIType *CGDebugInfo::CreateType(const FunctionType *Ty,
1605 CGDebugInfo::createBitFieldType(const FieldDecl *BitFieldDecl,
1639 llvm::DIDerivedType *CGDebugInfo::createBitFieldSeparatorIfNeeded(
1711 llvm::DIType *CGDebugInfo::createFieldType(
1736 CGDebugInfo::createInlinedTrapSubprogram(StringRef FuncName,
1757 void CGDebugInfo::CollectRecordLambdaFields(
1801 CGDebugInfo::CreateRecordStaticField(const VarDecl *Var, llvm::DIType *RecordTy,
1836 void CGDebugInfo::CollectRecordNormalField(
1865 void CGDebugInfo::CollectRecordNestedType(
1876 void CGDebugInfo::CollectRecordFields(
1939 CGDebugInfo::getOrCreateMethodType(const CXXMethodDecl *Method,
1948 llvm::DISubroutineType *CGDebugInfo::getOrCreateInstanceMethodType(
2020 llvm::DISubprogram *CGDebugInfo::CreateCXXMemberFunction(
2138 void CGDebugInfo::CollectCXXMemberFunctions(
2176 void CGDebugInfo::CollectCXXBases(const CXXRecordDecl *RD, llvm::DIFile *Unit,
2191 void CGDebugInfo::CollectCXXBasesAux(
2239 CGDebugInfo::CollectTemplateParams(std::optional<TemplateArgs> OArgs,
2373 std::optional<CGDebugInfo::TemplateArgs>
2374 CGDebugInfo::GetTemplateArgs(const FunctionDecl *FD) const {
2384 std::optional<CGDebugInfo::TemplateArgs>
2385 CGDebugInfo::GetTemplateArgs(const VarDecl *VD) const {
2397 std::optional<CGDebugInfo::TemplateArgs>
2398 CGDebugInfo::GetTemplateArgs(const RecordDecl *RD) const {
2412 CGDebugInfo::CollectFunctionTemplateParams(const FunctionDecl *FD,
2417 llvm::DINodeArray CGDebugInfo::CollectVarTemplateParams(const VarDecl *VL,
2422 llvm::DINodeArray CGDebugInfo::CollectCXXTemplateParams(const RecordDecl *RD,
2427 llvm::DINodeArray CGDebugInfo::CollectBTFDeclTagAnnotations(const Decl *D) {
2441 llvm::DIType *CGDebugInfo::getOrCreateVTablePtrType(llvm::DIFile *Unit) {
2462 StringRef CGDebugInfo::getVTableName(const CXXRecordDecl *RD) {
2467 StringRef CGDebugInfo::getDynamicInitializerName(const VarDecl *VD,
2521 void CGDebugInfo::CollectVTableInfo(const CXXRecordDecl *RD, llvm::DIFile *Unit,
2576 llvm::DIType *CGDebugInfo::getOrCreateRecordType(QualType RTy,
2583 llvm::DIType *CGDebugInfo::getOrCreateInterfaceType(QualType D,
2588 llvm::DIType *CGDebugInfo::getOrCreateStandaloneType(QualType D,
2599 void CGDebugInfo::addHeapAllocSiteMetadata(llvm::CallBase *CI,
2614 void CGDebugInfo::completeType(const EnumDecl *ED) {
2627 void CGDebugInfo::completeType(const RecordDecl *RD) {
2675 void CGDebugInfo::completeClassData(const RecordDecl *RD) {
2689 void CGDebugInfo::completeClass(const RecordDecl *RD) {
2801 void CGDebugInfo::completeRequiredType(const RecordDecl *RD) {
2811 llvm::DIType *CGDebugInfo::CreateType(const RecordType *Ty) {
2826 llvm::DIType *CGDebugInfo::GetPreferredNameType(const CXXRecordDecl *RD,
2839 CGDebugInfo::CreateTypeDefinition(const RecordType *Ty) {
2902 llvm::DIType *CGDebugInfo::CreateType(const ObjCObjectType *Ty,
2908 llvm::DIType *CGDebugInfo::CreateType(const ObjCTypeParamType *Ty,
2944 llvm::DIType *CGDebugInfo::CreateType(const ObjCInterfaceType *Ty,
2980 llvm::DIModule *CGDebugInfo::getOrCreateModuleRef(ASTSourceDescriptor Mod,
3078 llvm::DIType *CGDebugInfo::CreateTypeDefinition(const ObjCInterfaceType *Ty,
3255 llvm::DIType *CGDebugInfo::CreateType(const VectorType *Ty,
3300 llvm::DIType *CGDebugInfo::CreateType(const ConstantMatrixType *Ty,
3327 llvm::DIType *CGDebugInfo::CreateType(const ArrayType *Ty, llvm::DIFile *Unit) {
3397 llvm::DIType *CGDebugInfo::CreateType(const LValueReferenceType *Ty,
3403 llvm::DIType *CGDebugInfo::CreateType(const RValueReferenceType *Ty,
3414 llvm::DIType *CGDebugInfo::CreateType(const MemberPointerType *Ty,
3455 llvm::DIType *CGDebugInfo::CreateType(const AtomicType *Ty, llvm::DIFile *U) {
3460 llvm::DIType *CGDebugInfo::CreateType(const PipeType *Ty, llvm::DIFile *U) {
3464 llvm::DIType *CGDebugInfo::CreateEnumType(const EnumType *Ty) {
3508 llvm::DIType *CGDebugInfo::CreateTypeDefinition(const EnumType *Ty) {
3538 llvm::DIMacro *CGDebugInfo::CreateMacro(llvm::DIMacroFile *Parent,
3545 llvm::DIMacroFile *CGDebugInfo::CreateTempMacroFile(llvm::DIMacroFile *Parent,
3553 llvm::DILocation *CGDebugInfo::CreateTrapFailureMessageFor(
3648 llvm::DIType *CGDebugInfo::getTypeOrNull(QualType Ty) {
3660 void CGDebugInfo::completeTemplateDefinition(
3665 void CGDebugInfo::completeUnusedClass(const CXXRecordDecl &D) {
3676 llvm::DIType *CGDebugInfo::getOrCreateType(QualType Ty, llvm::DIFile *Unit) {
3702 llvm::DIModule *CGDebugInfo::getParentModuleOrNull(const Decl *D) {
3737 llvm::DIType *CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile *Unit) {
3830 CGDebugInfo::getOrCreateLimitedType(const RecordType *Ty) {
3855 llvm::DICompositeType *CGDebugInfo::CreateLimitedType(const RecordType *Ty) {
3952 void CGDebugInfo::CollectContainingType(const CXXRecordDecl *RD,
3975 llvm::DIType *CGDebugInfo::CreateMemberType(llvm::DIFile *Unit, QualType FType,
3977 llvm::DIType *FieldTy = CGDebugInfo::getOrCreateType(FType, Unit);
3987 void CGDebugInfo::collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit,
4034 void CGDebugInfo::collectVarDeclProps(const VarDecl *VD, llvm::DIFile *&Unit,
4089 llvm::DISubprogram *CGDebugInfo::getFunctionFwdDeclOrStub(GlobalDecl GD,
4136 llvm::DISubprogram *CGDebugInfo::getFunctionForwardDeclaration(GlobalDecl GD) {
4140 llvm::DISubprogram *CGDebugInfo::getFunctionStub(GlobalDecl GD) {
4145 CGDebugInfo::getGlobalVariableForwardDeclaration(const VarDecl *VD) {
4167 llvm::DINode *CGDebugInfo::getDeclarationOrDefinition(const Decl *D) {
4205 llvm::DISubprogram *CGDebugInfo::getFunctionDeclaration(const Decl *D) {
4240 llvm::DISubprogram *CGDebugInfo::getObjCMethodDeclaration(
4278 llvm::DISubroutineType *CGDebugInfo::getOrCreateFunctionType(const Decl *D,
4353 CGDebugInfo::getFunctionType(const FunctionDecl *FD, QualType RetTy,
4366 void CGDebugInfo::emitFunctionStart(GlobalDecl GD, SourceLocation Loc,
4475 void CGDebugInfo::EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc,
4548 void CGDebugInfo::EmitFuncDeclForCallSite(llvm::CallBase *CallOrInvoke,
4572 void CGDebugInfo::EmitInlineFunctionStart(CGBuilderTy &Builder, GlobalDecl GD) {
4587 void CGDebugInfo::EmitInlineFunctionEnd(CGBuilderTy &Builder) {
4593 void CGDebugInfo::EmitLocation(CGBuilderTy &Builder, SourceLocation Loc) {
4606 void CGDebugInfo::CreateLexicalBlock(SourceLocation Loc) {
4615 void CGDebugInfo::AppendAddressSpaceXDeref(
4628 void CGDebugInfo::EmitLexicalBlockStart(CGBuilderTy &Builder,
4645 void CGDebugInfo::EmitLexicalBlockEnd(CGBuilderTy &Builder,
4658 void CGDebugInfo::EmitFunctionEnd(CGBuilderTy &Builder, llvm::Function *Fn) {
4675 CGDebugInfo::BlockByRefType
4676 CGDebugInfo::EmitTypeForVarWithBlocksAttr(const VarDecl *VD,
4746 llvm::DILocalVariable *CGDebugInfo::EmitDeclare(const VarDecl *VD,
4926 llvm::DILocalVariable *CGDebugInfo::EmitDeclare(const BindingDecl *BD,
5033 CGDebugInfo::EmitDeclareOfAutoVariable(const VarDecl *VD, llvm::Value *Storage,
5051 void CGDebugInfo::EmitLabel(const LabelDecl *D, CGBuilderTy &Builder) {
5078 llvm::DIType *CGDebugInfo::CreateSelfType(const QualType &QualTy,
5086 void CGDebugInfo::EmitDeclareOfBlockDeclRefVariable(
5159 CGDebugInfo::EmitDeclareOfArgVariable(const VarDecl *VD, llvm::Value *AI,
5176 void CGDebugInfo::collectDefaultFieldsForBlockLiteralDeclare(
5214 void CGDebugInfo::EmitDeclareOfBlockLiteralArgVariable(const CGBlockInfo &block,
5342 CGDebugInfo::getOrCreateStaticDataMemberDeclarationOrNull(const VarDecl *D) {
5359 llvm::DIGlobalVariableExpression *CGDebugInfo::CollectAnonRecordDecls(
5488 bool CGDebugInfo::HasReconstitutableArgs(
5536 std::string CGDebugInfo::GetName(const Decl *D, bool Qualified) const {
5619 void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
5685 void CGDebugInfo::EmitGlobalVariable(const ValueDecl *VD, const APValue &Init) {
5761 void CGDebugInfo::EmitExternalVariable(llvm::GlobalVariable *Var,
5780 void CGDebugInfo::EmitPseudoVariable(CGBuilderTy &Builder,
5822 void CGDebugInfo::EmitGlobalAlias(const llvm::GlobalValue *GV,
5863 void CGDebugInfo::AddStringLiteralDebugInfo(llvm::GlobalVariable *GV,
5878 llvm::DIScope *CGDebugInfo::getCurrentContextDescriptor(const Decl *D) {
5885 void CGDebugInfo::EmitUsingDirective(const UsingDirectiveDecl &UD) {
5900 void CGDebugInfo::EmitUsingShadowDecl(const UsingShadowDecl &USD) {
5910 void CGDebugInfo::EmitUsingDecl(const UsingDecl &UD) {
5935 void CGDebugInfo::EmitUsingEnumDecl(const UsingEnumDecl &UD) {
5946 void CGDebugInfo::EmitImportDecl(const ImportDecl &ID) {
5960 CGDebugInfo::EmitNamespaceAlias(const NamespaceAliasDecl &NA) {
5985 CGDebugInfo::getOrCreateNamespace(const NamespaceDecl *NSDecl) {
6001 void CGDebugInfo::setDwoId(uint64_t Signature) {
6006 void CGDebugInfo::finalize() {
6083 void CGDebugInfo::EmitExplicitCastType(QualType Ty) {
6089 void CGDebugInfo::EmitAndRetainType(QualType Ty) {
6095 llvm::DebugLoc CGDebugInfo::SourceLocToDebugLoc(SourceLocation Loc) {
6104 llvm::DINode::DIFlags CGDebugInfo::getCallSiteRelatedAttrs() const {
6127 CGDebugInfo::createConstantValueExpression(const clang::ValueDecl *VD,