brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.0 KiB · 20cc98a Raw
68 lines · plain
1; Check that abstract DIEs for inlined subprograms and lexical scopes2; are populated only once.3 4; RUN: llc -filetype=obj %s -o - | llvm-dwarfdump - -o - | FileCheck --implicit-check-not=DW_TAG_lexical_scope --implicit-check-not DW_TAG_subprogram %s5 6; CHECK:  DW_TAG_compile_unit7; CHECK:    DW_TAG_namespace8; CHECK:      DW_TAG_subprogram9; CHECK:        DW_AT_declaration (true)10; CHECK:      DW_TAG_subprogram11; CHECK:        DW_AT_declaration (true)12; CHECK:      DW_TAG_subprogram13; CHECK:        DW_AT_declaration (true)14; CHECK:      NULL15 16; CHECK:  [[ABSTRACT_SP:0x[0-9a-f]+]]: DW_TAG_subprogram17; CHECK:    DW_AT_inline (DW_INL_inlined)18 19; CHECK:    DW_TAG_lexical_block20; CHECK:      DW_TAG_imported_module21; CHECK:      NULL22 23; CHECK:    NULL24 25; CHECK:  DW_TAG_subprogram26; CHECK:    DW_TAG_inlined_subroutine27; CHECK:      DW_AT_abstract_origin ([[ABSTRACT_SP]]28; CHECK:    NULL29; CHECK:  DW_TAG_subprogram30; CHECK:    DW_TAG_inlined_subroutine31; CHECK:      DW_AT_abstract_origin ([[ABSTRACT_SP]]32; CHECK:    NULL33 34target triple = "aarch64-unknown-linux-gnu"35 36define void @_ZN12_GLOBAL__N_117MapRegionCounters14TraverseIfStmtEPN5clang6IfStmtE() !dbg !4 {37entry:38  ret void, !dbg !839}40 41define void @_ZN12_GLOBAL__N_117MapRegionCounters9VisitStmtEPN5clang4StmtE() !dbg !15 {42entry:43  ret void, !dbg !1744}45 46!llvm.dbg.cu = !{!0}47!llvm.module.flags = !{!3}48 49!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !2, globals: !2, imports: !2)50!1 = !DIFile(filename: "CodeGenPGO.cpp", directory: "/")51!2 = !{}52!3 = !{i32 2, !"Debug Info Version", i32 3}53!4 = distinct !DISubprogram(name: "TraverseIfStmt", linkageName: "_ZN12_GLOBAL__N_117MapRegionCounters14TraverseIfStmtEPN5clang6IfStmtE", scope: !5, file: !1, line: 364, type: !6, scopeLine: 364, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition | DISPFlagOptimized, unit: !0, declaration: !7, retainedNodes: !2, keyInstructions: true)54!5 = !DINamespace(name: "llvm", scope: null)55!6 = distinct !DISubroutineType(types: !2)56!7 = !DISubprogram(name: "TraverseIfStmt", linkageName: "_ZN12_GLOBAL__N_117MapRegionCounters14TraverseIfStmtEPN5clang6IfStmtE", scope: !5, file: !1, line: 364, type: !6, scopeLine: 364, flags: DIFlagPrototyped, spFlags: DISPFlagLocalToUnit | DISPFlagOptimized)57!8 = !DILocation(line: 982, column: 39, scope: !9, inlinedAt: !14, atomGroup: 6, atomRank: 2)58!9 = distinct !DISubprogram(name: "combine", linkageName: "_ZN12_GLOBAL__N_17PGOHash7combineENS0_8HashTypeE", scope: !5, file: !1, line: 966, type: !6, scopeLine: 966, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition | DISPFlagOptimized, unit: !0, declaration: !10, retainedNodes: !11, keyInstructions: true)59!10 = !DISubprogram(name: "combine", linkageName: "_ZN12_GLOBAL__N_17PGOHash7combineENS0_8HashTypeE", scope: !5, file: !1, line: 140, type: !6, scopeLine: 140, flags: DIFlagPublic | DIFlagPrototyped, spFlags: DISPFlagLocalToUnit | DISPFlagOptimized)60!11 = !{!12}61!12 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !13, entity: !5, file: !1, line: 973)62!13 = distinct !DILexicalBlock(scope: !9, file: !1, line: 972, column: 7)63!14 = distinct !DILocation(line: 393, column: 10, scope: !4)64!15 = distinct !DISubprogram(name: "VisitStmt", linkageName: "_ZN12_GLOBAL__N_117MapRegionCounters9VisitStmtEPN5clang4StmtE", scope: !5, file: !1, line: 355, type: !6, scopeLine: 355, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagLocalToUnit | DISPFlagDefinition | DISPFlagOptimized, unit: !0, declaration: !16, retainedNodes: !2, keyInstructions: true)65!16 = !DISubprogram(name: "VisitStmt", linkageName: "_ZN12_GLOBAL__N_117MapRegionCounters9VisitStmtEPN5clang4StmtE", scope: !5, file: !1, line: 355, type: !6, scopeLine: 355, flags: DIFlagPrototyped, spFlags: DISPFlagLocalToUnit | DISPFlagOptimized)66!17 = !DILocation(line: 982, column: 13, scope: !9, inlinedAt: !18)67!18 = distinct !DILocation(line: 360, column: 12, scope: !15)68