34 lines · plain
1; RUN: llvm-reduce %s -o %t --delta-passes=metadata --test %python --test-arg %p/Inputs/remove-metadata.py --abort-on-invalid-reduction2; RUN: FileCheck %s --input-file %t3 4; CHECK: #dbg_declare5; CHECK: !llvm.dbg.cu = !{!0}6; CHECK-NOT: uninteresting7 8define i32 @main() !dbg !4 {9entry:10 %i = alloca i32, align 411 call void @llvm.dbg.declare(metadata ptr %i, metadata !10, metadata !DIExpression()), !dbg !1112 ret i32 013}14 15declare void @llvm.dbg.declare(metadata, metadata, metadata) #016 17!llvm.dbg.cu = !{!0}18!llvm.module.flags = !{!2, !3}19!interesting = !{}20!uninteresting = !{}21 22!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 16.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)23!1 = !DIFile(filename: "/tmp/a.c", directory: "/tmp", checksumkind: CSK_MD5, checksum: "3b0a4b024d464b367033485450c7a5f9")24!2 = !{i32 7, !"Dwarf Version", i32 5}25!3 = !{i32 2, !"Debug Info Version", i32 3}26!4 = distinct !DISubprogram(name: "main", scope: !5, file: !5, line: 1, type: !6, scopeLine: 1, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !9)27!5 = !DIFile(filename: "/tmp/a.c", directory: "", checksumkind: CSK_MD5, checksum: "3b0a4b024d464b367033485450c7a5f9")28!6 = !DISubroutineType(types: !7)29!7 = !{!8}30!8 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)31!9 = !{}32!10 = !DILocalVariable(name: "i", scope: !4, file: !5, line: 2, type: !8)33!11 = !DILocation(line: 2, column: 6, scope: !4)34