brintos

brintos / llvm-project-archived public Read only

0
0
Text · 4.0 KiB · 62b8e3a Raw
80 lines · plain
1# RUN: llc -filetype=obj -start-after=patchable-function -O3 %s -o - | llvm-dwarfdump -v - | FileCheck %s2 3# CHECK-LABEL: .debug_info contents:4 5# CHECK-LABEL: DW_TAG_GNU_call_site6# CHECK-NEXT: DW_AT_abstract_origin [DW_FORM_ref4] (cu + 0x[[BAR_ADDR:[0-9a-f]+]] => {0x{{0*}}[[BAR_ADDR]]} "bar")7# CHECK-NEXT: DW_AT_low_pc [DW_FORM_addr] (0x00000008 ".text")8 9--- |10  ; ModuleID = 'bundled-call-pr44001.ll'11  source_filename = "bundled-call-pr44001.c"12  target datalayout = "e-m:e-p:32:32:32-a:0-n16:32-i64:64:64-i32:32:32-i16:16:16-i1:8:8-f32:32:32-f64:64:64-v32:32:32-v64:64:64-v512:512:512-v1024:1024:1024-v2048:2048:2048"13  target triple = "hexagon-unknown-unknown-elf"14  15  define dso_local i32 @foo(i32 %cond) local_unnamed_addr !dbg !12 {16  entry:17    call void @llvm.dbg.value(metadata i32 %cond, metadata !14, metadata !DIExpression()), !dbg !1518    %call = tail call i32 @bar(i32 %cond), !dbg !1619    %add = add nsw i32 %call, 1, !dbg !1720    ret i32 %add, !dbg !1821  }22  23  declare !dbg !4 dso_local i32 @bar(i32) local_unnamed_addr24  25  ; Function Attrs: nounwind readnone speculatable willreturn26  declare void @llvm.dbg.value(metadata, metadata, metadata)27  28  !llvm.dbg.cu = !{!0}29  !llvm.module.flags = !{!8, !9, !10}30  !llvm.ident = !{!11}31  32  !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 10.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !3, nameTableKind: None)33  !1 = !DIFile(filename: "bundled-call-pr44001.ll", directory: "/")34  !2 = !{}35  !3 = !{!4}36  !4 = !DISubprogram(name: "bar", scope: !1, file: !1, line: 1, type: !5, flags: DIFlagPrototyped, spFlags: DISPFlagOptimized, retainedNodes: !2)37  !5 = !DISubroutineType(types: !6)38  !6 = !{!7, !7}39  !7 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)40  !8 = !{i32 2, !"Dwarf Version", i32 4}41  !9 = !{i32 2, !"Debug Info Version", i32 3}42  !10 = !{i32 1, !"wchar_size", i32 4}43  !11 = !{!"clang version 10.0.0"}44  !12 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 4, type: !5, scopeLine: 4, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !13)45  !13 = !{!14}46  !14 = !DILocalVariable(name: "cond", arg: 1, scope: !12, file: !1, line: 4, type: !7)47  !15 = !DILocation(line: 0, scope: !12)48  !16 = !DILocation(line: 5, column: 10, scope: !12)49  !17 = !DILocation(line: 5, column: 20, scope: !12)50  !18 = !DILocation(line: 5, column: 3, scope: !12)51 52...53---54name:            foo55alignment:       1656tracksRegLiveness: true57frameInfo:58  maxAlignment:    159  adjustsStack:    true60  hasCalls:        true61  maxCallFrameSize: 062machineFunctionInfo: {}63body:             |64  bb.0.entry:65    liveins: $r066  67    DBG_VALUE $r0, $noreg, !14, !DIExpression(), debug-location !1568    DBG_VALUE $r0, $noreg, !14, !DIExpression(), debug-location !1569    DBG_VALUE $r0, $noreg, !14, !DIExpression(), debug-location !1570    BUNDLE implicit-def $r29, implicit-def $r30, implicit-def dead $pc, implicit-def dead $r31, implicit-def $r0, implicit $r29, implicit killed $framekey, implicit killed $framelimit, implicit killed $r30, implicit killed $r31, implicit $r0, debug-location !16 {71      $r29 = S2_allocframe $r29, 0, implicit-def $r30, implicit killed $framekey, implicit killed $framelimit, implicit killed $r30, implicit killed $r31, debug-location !16 :: (store (s32) into stack)72      J2_call @bar, hexagoncsr, implicit-def dead $pc, implicit-def dead $r31, implicit internal killed $r29, implicit $r0, implicit-def $r29, implicit-def $r0, debug-location !1673    }74    BUNDLE implicit-def dead $r0, implicit-def $d15, implicit-def $r30, implicit-def $r31, implicit-def $pc, implicit-def $r29, implicit $r0, implicit killed $r30, implicit killed $framekey, debug-location !17 {75      renamable $r0 = nsw A2_addi renamable $r0, 1, debug-location !1776      $d15 = L4_return killed $r30, implicit-def $pc, implicit-def $r29, implicit killed $framekey, implicit-def dead $pc, implicit internal killed $r0, debug-location !1877    }78 79...80