Lines Matching defs:CGDebugInfo

1 //===--- CGDebugInfo.cpp - Emit Debug Information for a Module ------------===//
13 #include "CGDebugInfo.h"
110 CGDebugInfo::CGDebugInfo(CodeGenModule &CGM)
117 CGDebugInfo::~CGDebugInfo() {
199 "CGDebugInfo and IRBuilder are out of sync");
212 void CGDebugInfo::setLocation(SourceLocation Loc) {
243 llvm::DIScope *CGDebugInfo::getDeclContextDescriptor(const Decl *D) {
249 llvm::DIScope *CGDebugInfo::getContextDescriptor(const Decl *Context,
271 PrintingPolicy CGDebugInfo::getPrintingPolicy() const {
300 StringRef CGDebugInfo::getFunctionName(const FunctionDecl *FD) {
304 StringRef CGDebugInfo::getObjCMethodName(const ObjCMethodDecl *OMD) {
328 StringRef CGDebugInfo::getSelectorName(Selector S) {
332 StringRef CGDebugInfo::getClassName(const RecordDecl *RD) {
388 CGDebugInfo::computeChecksum(FileID FID, SmallString<64> &Checksum) const {
415 std::optional<StringRef> CGDebugInfo::getSource(const SourceManager &SM,
429 llvm::DIFile *CGDebugInfo::getOrCreateFile(SourceLocation Loc) {
472 llvm::DIFile *CGDebugInfo::createFile(
512 std::string CGDebugInfo::remapDIPath(StringRef Path) const {
520 unsigned CGDebugInfo::getLineNumber(SourceLocation Loc) {
527 unsigned CGDebugInfo::getColumnNumber(SourceLocation Loc, bool Force) {
540 StringRef CGDebugInfo::getCurrentDirname() {
553 void CGDebugInfo::CreateCompileUnit() {
700 llvm::DIType *CGDebugInfo::CreateType(const BuiltinType *BT) {
1006 llvm::DIType *CGDebugInfo::CreateType(const BitIntType *Ty) {
1017 llvm::DIType *CGDebugInfo::CreateType(const ComplexType *Ty) {
1051 llvm::DIType *CGDebugInfo::CreateQualifiedType(QualType Ty,
1073 llvm::DIType *CGDebugInfo::CreateQualifiedType(const FunctionProtoType *F,
1097 llvm::DIType *CGDebugInfo::CreateType(const ObjCObjectPointerType *Ty,
1110 llvm::DIType *CGDebugInfo::CreateType(const PointerType *Ty,
1206 CGDebugInfo::getOrCreateRecordFwdDecl(const RecordType *Ty,
1251 llvm::DIType *CGDebugInfo::CreatePointerLikeType(llvm::dwarf::Tag Tag,
1295 llvm::DIType *CGDebugInfo::getOrCreateStructPtrType(StringRef Name,
1306 uint64_t CGDebugInfo::collectDefaultElementTypesForBlockPointer(
1342 llvm::DIType *CGDebugInfo::CreateType(const BlockPointerType *Ty,
1421 llvm::DIType *CGDebugInfo::CreateType(const TemplateSpecializationType *Ty,
1520 llvm::DIType *CGDebugInfo::CreateType(const TypedefType *Ty,
1609 llvm::DIType *CGDebugInfo::CreateType(const FunctionType *Ty,
1644 CGDebugInfo::createBitFieldType(const FieldDecl *BitFieldDecl,
1678 llvm::DIDerivedType *CGDebugInfo::createBitFieldSeparatorIfNeeded(
1749 llvm::DIType *CGDebugInfo::createFieldType(
1774 CGDebugInfo::createInlinedTrapSubprogram(StringRef FuncName,
1795 void CGDebugInfo::CollectRecordLambdaFields(
1839 CGDebugInfo::CreateRecordStaticField(const VarDecl *Var, llvm::DIType *RecordTy,
1874 void CGDebugInfo::CollectRecordNormalField(
1903 void CGDebugInfo::CollectRecordNestedType(
1914 void CGDebugInfo::CollectRecordFields(
1977 CGDebugInfo::getOrCreateMethodType(const CXXMethodDecl *Method,
1991 llvm::DISubroutineType *CGDebugInfo::getOrCreateInstanceMethodType(
2058 llvm::DISubprogram *CGDebugInfo::CreateCXXMemberFunction(
2176 void CGDebugInfo::CollectCXXMemberFunctions(
2214 void CGDebugInfo::CollectCXXBases(const CXXRecordDecl *RD, llvm::DIFile *Unit,
2229 void CGDebugInfo::CollectCXXBasesAux(
2277 CGDebugInfo::CollectTemplateParams(std::optional<TemplateArgs> OArgs,
2411 std::optional<CGDebugInfo::TemplateArgs>
2412 CGDebugInfo::GetTemplateArgs(const FunctionDecl *FD) const {
2422 std::optional<CGDebugInfo::TemplateArgs>
2423 CGDebugInfo::GetTemplateArgs(const VarDecl *VD) const {
2435 std::optional<CGDebugInfo::TemplateArgs>
2436 CGDebugInfo::GetTemplateArgs(const RecordDecl *RD) const {
2450 CGDebugInfo::CollectFunctionTemplateParams(const FunctionDecl *FD,
2455 llvm::DINodeArray CGDebugInfo::CollectVarTemplateParams(const VarDecl *VL,
2460 llvm::DINodeArray CGDebugInfo::CollectCXXTemplateParams(const RecordDecl *RD,
2465 llvm::DINodeArray CGDebugInfo::CollectBTFDeclTagAnnotations(const Decl *D) {
2479 llvm::DIType *CGDebugInfo::getOrCreateVTablePtrType(llvm::DIFile *Unit) {
2500 StringRef CGDebugInfo::getVTableName(const CXXRecordDecl *RD) {
2505 StringRef CGDebugInfo::getDynamicInitializerName(const VarDecl *VD,
2559 void CGDebugInfo::CollectVTableInfo(const CXXRecordDecl *RD, llvm::DIFile *Unit,
2614 llvm::DIType *CGDebugInfo::getOrCreateRecordType(QualType RTy,
2621 llvm::DIType *CGDebugInfo::getOrCreateInterfaceType(QualType D,
2626 llvm::DIType *CGDebugInfo::getOrCreateStandaloneType(QualType D,
2637 void CGDebugInfo::addHeapAllocSiteMetadata(llvm::CallBase *CI,
2652 void CGDebugInfo::completeType(const EnumDecl *ED) {
2665 void CGDebugInfo::completeType(const RecordDecl *RD) {
2713 void CGDebugInfo::completeClassData(const RecordDecl *RD) {
2727 void CGDebugInfo::completeClass(const RecordDecl *RD) {
2839 void CGDebugInfo::completeRequiredType(const RecordDecl *RD) {
2849 llvm::DIType *CGDebugInfo::CreateType(const RecordType *Ty) {
2864 llvm::DIType *CGDebugInfo::GetPreferredNameType(const CXXRecordDecl *RD,
2877 CGDebugInfo::CreateTypeDefinition(const RecordType *Ty) {
2940 llvm::DIType *CGDebugInfo::CreateType(const ObjCObjectType *Ty,
2946 llvm::DIType *CGDebugInfo::CreateType(const ObjCTypeParamType *Ty,
2982 llvm::DIType *CGDebugInfo::CreateType(const ObjCInterfaceType *Ty,
3019 llvm::DIModule *CGDebugInfo::getOrCreateModuleRef(ASTSourceDescriptor Mod,
3117 llvm::DIType *CGDebugInfo::CreateTypeDefinition(const ObjCInterfaceType *Ty,
3293 llvm::DIType *CGDebugInfo::CreateType(const VectorType *Ty,
3338 llvm::DIType *CGDebugInfo::CreateType(const ConstantMatrixType *Ty,
3365 llvm::DIType *CGDebugInfo::CreateType(const ArrayType *Ty, llvm::DIFile *Unit) {
3435 llvm::DIType *CGDebugInfo::CreateType(const LValueReferenceType *Ty,
3441 llvm::DIType *CGDebugInfo::CreateType(const RValueReferenceType *Ty,
3452 llvm::DIType *CGDebugInfo::CreateType(const MemberPointerType *Ty,
3493 llvm::DIType *CGDebugInfo::CreateType(const AtomicType *Ty, llvm::DIFile *U) {
3498 llvm::DIType *CGDebugInfo::CreateType(const PipeType *Ty, llvm::DIFile *U) {
3502 llvm::DIType *CGDebugInfo::CreateType(const HLSLAttributedResourceType *Ty,
3507 llvm::DIType *CGDebugInfo::CreateEnumType(const EnumType *Ty) {
3551 llvm::DIType *CGDebugInfo::CreateTypeDefinition(const EnumType *Ty) {
3582 llvm::DIMacro *CGDebugInfo::CreateMacro(llvm::DIMacroFile *Parent,
3589 llvm::DIMacroFile *CGDebugInfo::CreateTempMacroFile(llvm::DIMacroFile *Parent,
3597 llvm::DILocation *CGDebugInfo::CreateTrapFailureMessageFor(
3692 llvm::DIType *CGDebugInfo::getTypeOrNull(QualType Ty) {
3704 void CGDebugInfo::completeTemplateDefinition(
3709 void CGDebugInfo::completeUnusedClass(const CXXRecordDecl &D) {
3720 llvm::DIType *CGDebugInfo::getOrCreateType(QualType Ty, llvm::DIFile *Unit) {
3746 llvm::DIModule *CGDebugInfo::getParentModuleOrNull(const Decl *D) {
3781 llvm::DIType *CGDebugInfo::CreateTypeNode(QualType Ty, llvm::DIFile *Unit) {
3876 CGDebugInfo::getOrCreateLimitedType(const RecordType *Ty) {
3901 llvm::DICompositeType *CGDebugInfo::CreateLimitedType(const RecordType *Ty) {
3998 void CGDebugInfo::CollectContainingType(const CXXRecordDecl *RD,
4021 llvm::DIType *CGDebugInfo::CreateMemberType(llvm::DIFile *Unit, QualType FType,
4023 llvm::DIType *FieldTy = CGDebugInfo::getOrCreateType(FType, Unit);
4033 void CGDebugInfo::collectFunctionDeclProps(GlobalDecl GD, llvm::DIFile *Unit,
4080 void CGDebugInfo::collectVarDeclProps(const VarDecl *VD, llvm::DIFile *&Unit,
4135 llvm::DISubprogram *CGDebugInfo::getFunctionFwdDeclOrStub(GlobalDecl GD,
4182 llvm::DISubprogram *CGDebugInfo::getFunctionForwardDeclaration(GlobalDecl GD) {
4186 llvm::DISubprogram *CGDebugInfo::getFunctionStub(GlobalDecl GD) {
4191 CGDebugInfo::getGlobalVariableForwardDeclaration(const VarDecl *VD) {
4213 llvm::DINode *CGDebugInfo::getDeclarationOrDefinition(const Decl *D) {
4251 llvm::DISubprogram *CGDebugInfo::getFunctionDeclaration(const Decl *D) {
4286 llvm::DISubprogram *CGDebugInfo::getObjCMethodDeclaration(
4324 llvm::DISubroutineType *CGDebugInfo::getOrCreateFunctionType(const Decl *D,
4398 CGDebugInfo::getFunctionType(const FunctionDecl *FD, QualType RetTy,
4411 void CGDebugInfo::emitFunctionStart(GlobalDecl GD, SourceLocation Loc,
4520 void CGDebugInfo::EmitFunctionDecl(GlobalDecl GD, SourceLocation Loc,
4593 void CGDebugInfo::EmitFuncDeclForCallSite(llvm::CallBase *CallOrInvoke,
4617 void CGDebugInfo::EmitInlineFunctionStart(CGBuilderTy &Builder, GlobalDecl GD) {
4632 void CGDebugInfo::EmitInlineFunctionEnd(CGBuilderTy &Builder) {
4638 void CGDebugInfo::EmitLocation(CGBuilderTy &Builder, SourceLocation Loc) {
4651 void CGDebugInfo::CreateLexicalBlock(SourceLocation Loc) {
4660 void CGDebugInfo::AppendAddressSpaceXDeref(
4673 void CGDebugInfo::EmitLexicalBlockStart(CGBuilderTy &Builder,
4690 void CGDebugInfo::EmitLexicalBlockEnd(CGBuilderTy &Builder,
4703 void CGDebugInfo::EmitFunctionEnd(CGBuilderTy &Builder, llvm::Function *Fn) {
4720 CGDebugInfo::BlockByRefType
4721 CGDebugInfo::EmitTypeForVarWithBlocksAttr(const VarDecl *VD,
4791 llvm::DILocalVariable *CGDebugInfo::EmitDeclare(const VarDecl *VD,
4973 llvm::DILocalVariable *CGDebugInfo::EmitDeclare(const BindingDecl *BD,
5080 CGDebugInfo::EmitDeclareOfAutoVariable(const VarDecl *VD, llvm::Value *Storage,
5097 void CGDebugInfo::EmitLabel(const LabelDecl *D, CGBuilderTy &Builder) {
5124 llvm::DIType *CGDebugInfo::CreateSelfType(const QualType &QualTy,
5132 void CGDebugInfo::EmitDeclareOfBlockDeclRefVariable(
5205 CGDebugInfo::EmitDeclareOfArgVariable(const VarDecl *VD, llvm::Value *AI,
5222 void CGDebugInfo::collectDefaultFieldsForBlockLiteralDeclare(
5260 void CGDebugInfo::EmitDeclareOfBlockLiteralArgVariable(const CGBlockInfo &block,
5388 CGDebugInfo::getOrCreateStaticDataMemberDeclarationOrNull(const VarDecl *D) {
5405 llvm::DIGlobalVariableExpression *CGDebugInfo::CollectAnonRecordDecls(
5534 bool CGDebugInfo::HasReconstitutableArgs(
5582 std::string CGDebugInfo::GetName(const Decl *D, bool Qualified) const {
5665 void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var,
5731 void CGDebugInfo::EmitGlobalVariable(const ValueDecl *VD, const APValue &Init) {
5807 void CGDebugInfo::EmitExternalVariable(llvm::GlobalVariable *Var,
5826 void CGDebugInfo::EmitPseudoVariable(CGBuilderTy &Builder,
5868 void CGDebugInfo::EmitGlobalAlias(const llvm::GlobalValue *GV,
5909 void CGDebugInfo::AddStringLiteralDebugInfo(llvm::GlobalVariable *GV,
5924 llvm::DIScope *CGDebugInfo::getCurrentContextDescriptor(const Decl *D) {
5931 void CGDebugInfo::EmitUsingDirective(const UsingDirectiveDecl &UD) {
5946 void CGDebugInfo::EmitUsingShadowDecl(const UsingShadowDecl &USD) {
5956 void CGDebugInfo::EmitUsingDecl(const UsingDecl &UD) {
5981 void CGDebugInfo::EmitUsingEnumDecl(const UsingEnumDecl &UD) {
5992 void CGDebugInfo::EmitImportDecl(const ImportDecl &ID) {
6006 CGDebugInfo::EmitNamespaceAlias(const NamespaceAliasDecl &NA) {
6031 CGDebugInfo::getOrCreateNamespace(const NamespaceDecl *NSDecl) {
6047 void CGDebugInfo::setDwoId(uint64_t Signature) {
6052 void CGDebugInfo::finalize() {
6129 void CGDebugInfo::EmitExplicitCastType(QualType Ty) {
6135 void CGDebugInfo::EmitAndRetainType(QualType Ty) {
6141 llvm::DebugLoc CGDebugInfo::SourceLocToDebugLoc(SourceLocation Loc) {
6150 llvm::DINode::DIFlags CGDebugInfo::getCallSiteRelatedAttrs() const {
6173 CGDebugInfo::createConstantValueExpression(const clang::ValueDecl *VD,