comparison test/Transforms/AddDiscriminators/basic.ll @ 120:1172e4bd9c6f

update 4.0.0
author mir3636
date Fri, 25 Nov 2016 19:14:25 +0900
parents 7d135dc70f03
children 803732b1fca8
comparison
equal deleted inserted replaced
101:34baf5011add 120:1172e4bd9c6f
1 ; RUN: opt < %s -add-discriminators -S | FileCheck %s 1 ; RUN: opt < %s -add-discriminators -S | FileCheck %s
2 ; RUN: opt < %s -passes=add-discriminators -S | FileCheck %s
2 3
3 ; Basic DWARF discriminator test. All the instructions in block 4 ; Basic DWARF discriminator test. All the instructions in block
4 ; 'if.then' should have a different discriminator value than 5 ; 'if.then' should have a different discriminator value than
5 ; the conditional branch at the end of block 'entry'. 6 ; the conditional branch at the end of block 'entry'.
6 ; 7 ;
35 ; CHECK: ret void, !dbg ![[END:[0-9]+]] 36 ; CHECK: ret void, !dbg ![[END:[0-9]+]]
36 } 37 }
37 38
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 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 40
40 ; We should be able to add discriminators even in the absence of llvm.dbg.cu. 41 !llvm.dbg.cu = !{!0}
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}
45 !llvm.module.flags = !{!7, !8} 42 !llvm.module.flags = !{!7, !8}
46 !llvm.ident = !{!9} 43 !llvm.ident = !{!9}
47 44
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 !0 = distinct !DICompileUnit(language: DW_LANG_C99, producer: "clang version 3.5 ", isOptimized: false, emissionKind: NoDebug, file: !1, enums: !2, retainedTypes: !2, globals: !2, imports: !2)
49 !1 = !DIFile(filename: "basic.c", directory: ".") 46 !1 = !DIFile(filename: "basic.c", directory: ".")
50 !2 = !{} 47 !2 = !{}
51 !3 = !{!4} 48 !4 = distinct !DISubprogram(name: "foo", line: 1, isLocal: false, isDefinition: true, virtualIndex: 6, flags: DIFlagPrototyped, isOptimized: false, unit: !0, scopeLine: 1, file: !1, scope: !5, type: !6, 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)
53 !5 = !DIFile(filename: "basic.c", directory: ".") 49 !5 = !DIFile(filename: "basic.c", directory: ".")
54 !6 = !DISubroutineType(types: !2) 50 !6 = !DISubroutineType(types: !2)
55 !7 = !{i32 2, !"Dwarf Version", i32 4} 51 !7 = !{i32 2, !"Dwarf Version", i32 4}
56 !8 = !{i32 1, !"Debug Info Version", i32 3} 52 !8 = !{i32 1, !"Debug Info Version", i32 3}
57 !9 = !{!"clang version 3.5 "} 53 !9 = !{!"clang version 3.5 "}