• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# RUN: llc -mtriple=aarch64 -run-pass=patchable-function %s -o - | FileCheck %s
2
3## The initial .loc covers PATCHABLE_FUNCTION_ENTER.
4## Emitting a new .loc may create a prologue_end prematurely.
5# CHECK:    name: empty
6# CHECK:    bb.0.entry
7# CHECK:      PATCHABLE_FUNCTION_ENTER{{$}}
8# CHECK-NEXT: RET undef $lr, debug-location !9
9
10--- |
11  define void @empty() #0 !dbg !6 {
12  entry:
13    ret void, !dbg !9
14  }
15
16  attributes #0 = { "patchable-function-entry"="1" }
17  !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 11.0.0 ", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, splitDebugInlining: false, nameTableKind: None)
18  !1 = !DIFile(filename: "a.c", directory: "/tmp")
19  !2 = !{}
20  !3 = !{i32 7, !"Dwarf Version", i32 4}
21  !4 = !{i32 2, !"Debug Info Version", i32 3}
22  !5 = !{i32 1, !"wchar_size", i32 4}
23  !6 = distinct !DISubprogram(name: "empty", scope: !1, file: !1, line: 1, type: !7, scopeLine: 1, flags: DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !2)
24  !7 = !DISubroutineType(types: !8)
25  !8 = !{null}
26  !9 = !DILocation(line: 1, column: 61, scope: !6)
27  !llvm.dbg.cu = !{!0}
28  !llvm.module.flags = !{!3, !4, !5}
29
30...
31---
32name:            empty
33alignment:       4
34tracksRegLiveness: true
35body:             |
36  bb.0.entry:
37    liveins: $lr
38    RET undef $lr, debug-location !9
39
40...
41