brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · c7f9149 Raw
36 lines · plain
1; RUN: llvm-dis -o - %s.bc | FileCheck %s2%class.A = type { i32, i32, i32, i32 }3 4define void @_Z3fooi(%class.A* sret(%class.A) %agg.result) #0 !dbg !3 {5  ; CHECK: #dbg_declare({{.*}}, !DIExpression(),6  call void @llvm.dbg.declare(metadata %class.A* %agg.result, metadata !13, metadata !16), !dbg !177  ret void, !dbg !178}9 10declare void @llvm.dbg.declare(metadata, metadata, metadata) #111 12attributes #0 = { ssp }13attributes #1 = { nounwind readnone }14 15!llvm.dbg.cu = !{!0}16!llvm.module.flags = !{!2}17 18!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)19!1 = !DIFile(filename: "a.cc", directory: "/tmp")20!2 = !{i32 1, !"Debug Info Version", i32 3}21!3 = distinct !DISubprogram(name: "foo", linkageName: "_Z3fooi", scope: !1, file: !1, line: 4, type: !4, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0)22!4 = !DISubroutineType(types: !5)23!5 = !{!6}24!6 = !DICompositeType(tag: DW_TAG_class_type, name: "A", scope: !0, file: !1, line: 2, size: 128, align: 32, elements: !7)25!7 = !{!8, !10, !11, !12}26!8 = !DIDerivedType(tag: DW_TAG_member, name: "x", scope: !1, file: !1, line: 2, baseType: !9, size: 32, align: 32)27!9 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)28!10 = !DIDerivedType(tag: DW_TAG_member, name: "y", scope: !1, file: !1, line: 2, baseType: !9, size: 32, align: 32, offset: 32)29!11 = !DIDerivedType(tag: DW_TAG_member, name: "z", scope: !1, file: !1, line: 2, baseType: !9, size: 32, align: 32, offset: 64)30!12 = !DIDerivedType(tag: DW_TAG_member, name: "o", scope: !1, file: !1, line: 2, baseType: !9, size: 32, align: 32, offset: 96)31!13 = !DILocalVariable(name: "my_a", scope: !14, file: !1, line: 9, type: !15)32!14 = distinct !DILexicalBlock(scope: !3, file: !1, line: 4, column: 14)33!15 = !DIDerivedType(tag: DW_TAG_reference_type, file: !1, baseType: !6)34!16 = !DIExpression(DW_OP_deref)35!17 = !DILocation(line: 9, column: 5, scope: !3)36