Mercurial > hg > CbC > CbC_llvm
comparison test/Transforms/AddDiscriminators/diamond.ll @ 121:803732b1fca8
LLVM 5.0
author | kono |
---|---|
date | Fri, 27 Oct 2017 17:07:41 +0900 (2017-10-27) |
parents | 1172e4bd9c6f |
children | c2174574ed3a |
comparison
equal
deleted
inserted
replaced
120:1172e4bd9c6f | 121:803732b1fca8 |
---|---|
8 ; #4 if (i > 10) | 8 ; #4 if (i > 10) |
9 ; #5 bar(5); else bar(3); | 9 ; #5 bar(5); else bar(3); |
10 ; #6 } | 10 ; #6 } |
11 | 11 |
12 ; bar(5): discriminator 0 | 12 ; bar(5): discriminator 0 |
13 ; bar(3): discriminator 1 | 13 ; bar(3): discriminator 2 |
14 | 14 |
15 ; Function Attrs: uwtable | 15 ; Function Attrs: uwtable |
16 define void @_Z3fooi(i32 %i) #0 !dbg !4 { | 16 define void @_Z3fooi(i32 %i) #0 !dbg !4 { |
17 %1 = alloca i32, align 4 | 17 %1 = alloca i32, align 4 |
18 store i32 %i, i32* %1, align 4 | 18 store i32 %i, i32* %1, align 4 |
67 !18 = !DILocation(line: 5, column: 5, scope: !15) | 67 !18 = !DILocation(line: 5, column: 5, scope: !15) |
68 !19 = !DILocation(line: 5, column: 18, scope: !15) | 68 !19 = !DILocation(line: 5, column: 18, scope: !15) |
69 !20 = !DILocation(line: 6, column: 1, scope: !4) | 69 !20 = !DILocation(line: 6, column: 1, scope: !4) |
70 | 70 |
71 ; CHECK: ![[ELSE]] = !DILocation(line: 5, column: 18, scope: ![[ELSEBLOCK:[0-9]+]]) | 71 ; CHECK: ![[ELSE]] = !DILocation(line: 5, column: 18, scope: ![[ELSEBLOCK:[0-9]+]]) |
72 ; CHECK: ![[ELSEBLOCK]] = !DILexicalBlockFile({{.*}} discriminator: 1) | 72 ; CHECK: ![[ELSEBLOCK]] = !DILexicalBlockFile({{.*}} discriminator: 2) |