• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1RUN: llvm-opt-report -r %p %p/Inputs/q3.yaml | FileCheck -strict-whitespace %s
2
3; CHECK: < {{.*[/\]}}q3.c
4; CHECK-NEXT:  1     | void bar();
5; CHECK-NEXT:  2     | void foo(int n) {
6; CHECK-NEXT:  {{\[\[}}
7; CHECK-NEXT:   > foo:
8; CHECK-NEXT:  3     |   for (int i = 0; i < n; ++i)
9; CHECK-NEXT:   > quack:
10; CHECK-NEXT:  3  U4 |   for (int i = 0; i < n; ++i)
11; CHECK-NEXT:   > quack2:
12; CHECK-NEXT:  3  U8 |   for (int i = 0; i < n; ++i)
13; CHECK-NEXT:  {{\]\]}}
14; CHECK-NEXT:  4     |     bar();
15; CHECK-NEXT:  5     | }
16; CHECK-NEXT:  6     |
17; CHECK-NEXT:  7     | void quack() {
18; CHECK-NEXT:  8 I   |   foo(4);
19; CHECK-NEXT:  9     | }
20; CHECK-NEXT: 10     |
21; CHECK-NEXT: 11     | void quack2() {
22; CHECK-NEXT: 12 I   |   foo(8);
23; CHECK-NEXT: 13     | }
24; CHECK-NEXT: 14     |
25
26