brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.5 KiB · dd64615 Raw
35 lines · plain
1; RUN: opt < %s -passes=instrprof -profile-correlate=debug-info -S | opt -O2 -S | FileCheck %s2 3@__profn_foo = private constant [3 x i8] c"foo"4; CHECK:      @__profc_foo5 6define  void @_Z3foov() !dbg !12 {7  call void @llvm.instrprof.cover(ptr @__profn_foo, i64 12345678, i32 1, i32 0)8  ; CHECK: store i8 0, ptr @__profc_foo, align 19  ret void10}11 12declare void @llvm.instrprof.cover(ptr, i64, i32, i32)13 14!llvm.dbg.cu = !{!0}15!llvm.module.flags = !{!2, !3, !4, !5, !6, !7, !8, !9, !10}16!llvm.ident = !{!11}17 18!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus_14, file: !1, producer: "clang version 14.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, splitDebugInlining: false, nameTableKind: None)19!1 = !DIFile(filename: "debug-info-correlate-coverage.cpp", directory: "")20!2 = !{i32 7, !"Dwarf Version", i32 4}21!3 = !{i32 2, !"Debug Info Version", i32 3}22!4 = !{i32 1, !"wchar_size", i32 4}23!5 = !{i32 8, !"branch-target-enforcement", i32 0}24!6 = !{i32 8, !"sign-return-address", i32 0}25!7 = !{i32 8, !"sign-return-address-all", i32 0}26!8 = !{i32 8, !"sign-return-address-with-bkey", i32 0}27!9 = !{i32 7, !"uwtable", i32 1}28!10 = !{i32 7, !"frame-pointer", i32 1}29!11 = !{!"clang version 14.0.0"}30!12 = distinct !DISubprogram(name: "foo", linkageName: "_Z3foov", scope: !13, file: !13, line: 1, type: !14, scopeLine: 1, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !16)31!13 = !DIFile(filename: "debug-info-correlate-coverage.cpp", directory: "")32!14 = !DISubroutineType(types: !15)33!15 = !{null}34!16 = !{}35