comparison test/Transforms/AddDiscriminators/first-only.ll @ 100:7d135dc70f03 LLVM 3.9

LLVM 3.9
author Miyagi Mitsuki <e135756@ie.u-ryukyu.ac.jp>
date Tue, 26 Jan 2016 22:53:40 +0900
parents afa8332a0e37
children 1172e4bd9c6f
comparison
equal deleted inserted replaced
96:6418606d0ead 100:7d135dc70f03
11 ; if (i < 10) { x = i; 11 ; if (i < 10) { x = i;
12 ; y = -i; 12 ; y = -i;
13 ; } 13 ; }
14 ; } 14 ; }
15 15
16 define void @foo(i32 %i) #0 { 16 define void @foo(i32 %i) #0 !dbg !4 {
17 entry: 17 entry:
18 %i.addr = alloca i32, align 4 18 %i.addr = alloca i32, align 4
19 %x = alloca i32, align 4 19 %x = alloca i32, align 4
20 %y = alloca i32, align 4 20 %y = alloca i32, align 4
21 store i32 %i, i32* %i.addr, align 4 21 store i32 %i, i32* %i.addr, align 4
44 ; CHECK: ret void, !dbg ![[END:[0-9]+]] 44 ; CHECK: ret void, !dbg ![[END:[0-9]+]]
45 } 45 }
46 46
47 attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" } 47 attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
48 48
49 !llvm.dbg.cu = !{!0} 49 ; We should be able to add discriminators even in the absence of llvm.dbg.cu.
50 ; When using sample profiles, the front end will generate line tables but it
51 ; does not generate llvm.dbg.cu to prevent codegen from emitting debug info
52 ; to the final binary.
53 ; !llvm.dbg.cu = !{!0}
50 !llvm.module.flags = !{!7, !8} 54 !llvm.module.flags = !{!7, !8}
51 !llvm.ident = !{!9} 55 !llvm.ident = !{!9}
52 56
53 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 (trunk 199750) (llvm/trunk 199751)", isOptimized: false, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) 57 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 (trunk 199750) (llvm/trunk 199751)", isOptimized: false, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2)
54 !1 = !DIFile(filename: "first-only.c", directory: ".") 58 !1 = !DIFile(filename: "first-only.c", directory: ".")
55 !2 = !{} 59 !2 = !{}
56 !3 = !{!4} 60 !3 = !{!4}
57 !4 = distinct !DISubprogram(name: "foo", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 1, file: !1, scope: !5, type: !6, function: void (i32)* @foo, variables: !2) 61 !4 = distinct !DISubprogram(name: "foo", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, scopeLine: 1, file: !1, scope: !5, type: !6, variables: !2)
58 !5 = !DIFile(filename: "first-only.c", directory: ".") 62 !5 = !DIFile(filename: "first-only.c", directory: ".")
59 !6 = !DISubroutineType(types: !{null}) 63 !6 = !DISubroutineType(types: !{null})
60 !7 = !{i32 2, !"Dwarf Version", i32 4} 64 !7 = !{i32 2, !"Dwarf Version", i32 4}
61 !8 = !{i32 1, !"Debug Info Version", i32 3} 65 !8 = !{i32 1, !"Debug Info Version", i32 3}
62 !9 = !{!"clang version 3.5 (trunk 199750) (llvm/trunk 199751)"} 66 !9 = !{!"clang version 3.5 (trunk 199750) (llvm/trunk 199751)"}