Mercurial > hg > CbC > CbC_llvm
comparison test/Transforms/AddDiscriminators/basic.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 |
---|---|
9 ; void foo(int i) { | 9 ; void foo(int i) { |
10 ; int x; | 10 ; int x; |
11 ; if (i < 10) x = i; | 11 ; if (i < 10) x = i; |
12 ; } | 12 ; } |
13 | 13 |
14 define void @foo(i32 %i) #0 { | 14 define void @foo(i32 %i) #0 !dbg !4 { |
15 entry: | 15 entry: |
16 %i.addr = alloca i32, align 4 | 16 %i.addr = alloca i32, align 4 |
17 %x = alloca i32, align 4 | 17 %x = alloca i32, align 4 |
18 store i32 %i, i32* %i.addr, align 4 | 18 store i32 %i, i32* %i.addr, align 4 |
19 %0 = load i32, i32* %i.addr, align 4, !dbg !10 | 19 %0 = load i32, i32* %i.addr, align 4, !dbg !10 |
35 ; CHECK: ret void, !dbg ![[END:[0-9]+]] | 35 ; CHECK: ret void, !dbg ![[END:[0-9]+]] |
36 } | 36 } |
37 | 37 |
38 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" } | 38 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" } |
39 | 39 |
40 !llvm.dbg.cu = !{!0} | 40 ; We should be able to add discriminators even in the absence of llvm.dbg.cu. |
41 ; When using sample profiles, the front end will generate line tables but it | |
42 ; does not generate llvm.dbg.cu to prevent codegen from emitting debug info | |
43 ; to the final binary. | |
44 ; !llvm.dbg.cu = !{!0} | |
41 !llvm.module.flags = !{!7, !8} | 45 !llvm.module.flags = !{!7, !8} |
42 !llvm.ident = !{!9} | 46 !llvm.ident = !{!9} |
43 | 47 |
44 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 ", isOptimized: false, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) | 48 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 ", isOptimized: false, emissionKind: 0, file: !1, enums: !2, retainedTypes: !2, subprograms: !3, globals: !2, imports: !2) |
45 !1 = !DIFile(filename: "basic.c", directory: ".") | 49 !1 = !DIFile(filename: "basic.c", directory: ".") |
46 !2 = !{} | 50 !2 = !{} |
47 !3 = !{!4} | 51 !3 = !{!4} |
48 !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) | 52 !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) |
49 !5 = !DIFile(filename: "basic.c", directory: ".") | 53 !5 = !DIFile(filename: "basic.c", directory: ".") |
50 !6 = !DISubroutineType(types: !2) | 54 !6 = !DISubroutineType(types: !2) |
51 !7 = !{i32 2, !"Dwarf Version", i32 4} | 55 !7 = !{i32 2, !"Dwarf Version", i32 4} |
52 !8 = !{i32 1, !"Debug Info Version", i32 3} | 56 !8 = !{i32 1, !"Debug Info Version", i32 3} |
53 !9 = !{!"clang version 3.5 "} | 57 !9 = !{!"clang version 3.5 "} |