brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · ac6fa71 Raw
28 lines · plain
1; RUN: llc -o - %s -fast-isel -stop-before=finalize-isel | FileCheck %s2 3; Make sure fast-isel produces DBG_VALUE instructions even if no debug printer4; is scheduled because of -stop-before.5target triple="aarch64--"6 7; CHECK-LABEL: name: func8; CHECK: DBG_VALUE9define void @func(ptr %a) !dbg !4 {10  call void @llvm.dbg.declare(metadata ptr %a, metadata !5, metadata !DIExpression()), !dbg !711  ret void12}13 14declare void @llvm.dbg.declare(metadata, metadata, metadata) #015attributes #0 = { nounwind readnone speculatable }16 17!llvm.dbg.cu = !{!0}18!llvm.module.flags = !{!2, !3}19 20!0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: LineTablesOnly)21!1 = !DIFile(filename: "fast-isel-dbg.ll", directory: "/")22!2 = !{i32 2, !"Dwarf Version", i32 4}23!3 = !{i32 2, !"Debug Info Version", i32 3}24!4 = distinct !DISubprogram(name: "func", scope: null, isLocal: false, isDefinition: true, isOptimized: false, unit: !0)25!5 = !DILocalVariable(name: "a", arg: 1, scope: !4, file: !1, line: 17, type: !6)26!6 = !DIBasicType(name: "unsigned int", size: 32, encoding: DW_ATE_unsigned)27!7 = !DILocation(line: 17, scope: !4)28