brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · 15eb5f9 Raw
43 lines · plain
1; RUN: llc -O0 -global-isel -stop-after=irtranslator -verify-machineinstrs %s -o - | FileCheck %s2; RUN: llc -O0 -fast-isel -stop-after=finalize-isel %s -o - | FileCheck %s3; RUN: llc -O0 -fast-isel=false -global-isel=false -stop-after=finalize-isel %s -o - | FileCheck %s4 5; CHECK: void @foo6; CHECK-NEXT: #dbg_declare({{.*}}, ![[VAR:.*]], !DIExpression([[EXPR:.*]]), ![[LOC:[0-9]+]]7; CHECK: entry_values:8; CHECK-NEXT: entry-value-register: '$x22', debug-info-variable: '![[VAR]]', debug-info-expression: '!DIExpression([[EXPR]], DW_OP_deref)',9; CHECK-NEXT:   debug-info-location: '![[LOC]]10; CHECK-NEXT: entry-value-register: '$x22', debug-info-variable: '![[VAR]]', debug-info-expression: '!DIExpression([[EXPR]], DW_OP_deref)'11; CHECK-NEXT:   debug-info-location: '![[LOC]]12 13; CHECK-NOT: DBG_VALUE14 15target triple="aarch64--"16 17define void @foo(ptr %unused_arg, ptr swiftasync %async_arg) !dbg !6 {18  call void @llvm.dbg.declare(metadata ptr %async_arg, metadata !12, metadata !DIExpression(DW_OP_LLVM_entry_value, 1)), !dbg !1419  call void @llvm.dbg.declare(metadata ptr %async_arg, metadata !12, metadata !DIExpression(DW_OP_LLVM_entry_value, 1)), !dbg !1420  call void @consume(ptr %async_arg)21  ret void, !dbg !1522}23 24declare void @llvm.dbg.declare(metadata, metadata, metadata)25declare void @consume(ptr %ptr)26 27!llvm.dbg.cu = !{!0}28!llvm.module.flags = !{!3, !4}29 30!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug)31!1 = !DIFile(filename: "x.c", directory: "/")32!3 = !{i32 2, !"Dwarf Version", i32 4}33!4 = !{i32 2, !"Debug Info Version", i32 3}34!6 = distinct !DISubprogram(name: "f", scope: !1, file: !1, line: 1, type: !7, isLocal: false, isDefinition: true, scopeLine: 1, unit: !0)35!7 = !DISubroutineType(types: !8)36!8 = !{null, !9, !9, !9}37!9 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !10, size: 64)38!10 = !DIDerivedType(tag: DW_TAG_const_type, baseType: !11)39!11 = !DIBasicType(name: "char", size: 8, encoding: DW_ATE_signed_char)40!12 = !DILocalVariable(name: "a", scope: !6, file: !1, line: 1, type: !9)41!14 = !DILocation(line: 1, column: 29, scope: !6)42!15 = !DILocation(line: 1, column: 37, scope: !6)43