42 lines · plain
1# RUN: llc -mtriple=aarch64 -run-pass=patchable-function %s -o - | FileCheck %s2# RUN: llc -mtriple=aarch64 -passes=patchable-function %s -o - | FileCheck %s3 4## The initial .loc covers PATCHABLE_FUNCTION_ENTER.5## Emitting a new .loc may create a prologue_end prematurely.6# CHECK: name: empty7# CHECK: bb.0.entry8# CHECK: PATCHABLE_FUNCTION_ENTER{{$}}9# CHECK-NEXT: RET undef $lr, debug-location !910 11--- |12 define void @empty() #0 !dbg !6 {13 entry:14 ret void, !dbg !915 }16 17 attributes #0 = { "patchable-function-entry"="1" }18 !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)19 !1 = !DIFile(filename: "a.c", directory: "/tmp")20 !2 = !{}21 !3 = !{i32 7, !"Dwarf Version", i32 4}22 !4 = !{i32 2, !"Debug Info Version", i32 3}23 !5 = !{i32 1, !"wchar_size", i32 4}24 !6 = distinct !DISubprogram(name: "empty", scope: !1, file: !1, line: 1, type: !7, scopeLine: 1, flags: DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !2)25 !7 = !DISubroutineType(types: !8)26 !8 = !{null}27 !9 = !DILocation(line: 1, column: 61, scope: !6)28 !llvm.dbg.cu = !{!0}29 !llvm.module.flags = !{!3, !4, !5}30 31...32---33name: empty34alignment: 435tracksRegLiveness: true36body: |37 bb.0.entry:38 liveins: $lr39 RET undef $lr, debug-location !940 41...42