[sanitizer] Improve FreeBSD ASLR detection
[llvm-project.git] / llvm / test / Other / scc-pass-printer.ll
bloba841716c16574a72aed7004e6bd79eaf625adbc2
1 ; RUN: opt < %s 2>&1 -disable-output \
2 ; RUN:     -passes=inline -print-after-all | FileCheck %s -check-prefix=INL
3 ; RUN: opt < %s 2>&1 -disable-output \
4 ; RUN:     -passes=inliner-wrapper -print-after-all | FileCheck %s -check-prefix=INL
5 ; RUN: opt < %s 2>&1 -disable-output \
6 ; RUN:     -passes=inline -print-after-all -print-module-scope | FileCheck %s -check-prefix=INL-MOD
7 ; RUN: opt < %s 2>&1 -disable-output \
8 ; RUN:     -passes=inliner-wrapper -print-after-all -print-module-scope | FileCheck %s -check-prefix=INL-MOD
10 ; INL:      IR Dump After InlinerPass on (foo, bar) ***
11 ; INL:      define void @foo()
12 ; INL-NEXT:   call void @bar()
13 ; INL:      define void @bar()
14 ; INL-NEXT:   call void @foo()
15 ; INL:      IR Dump After InlinerPass on (tester) ***
16 ; INL:      define void @tester()
17 ; INL-NEXT:   call void @foo()
19 ; INL-MOD-LABEL:*** IR Dump After InlinerPass on (foo, bar) ***
20 ; INL-MOD-NEXT: ModuleID =
21 ; INL-MOD-NEXT: source_filename =
22 ; INL-MOD: define void @tester()
23 ; INL-MOD-NEXT:  call void @foo()
24 ; INL-MOD: define void @foo()
25 ; INL-MOD-NEXT:  call void @bar()
26 ; INL-MOD: define void @bar()
27 ; INL-MOD-NEXT:   call void @foo()
28 ; INL-MOD-LABEL:*** IR Dump After InlinerPass on (tester) ***
29 ; INL-MOD-NEXT: ModuleID =
30 ; INL-MOD-NEXT: source_filename =
31 ; INL-MOD: define void @tester()
32 ; INL-MOD-NEXT:  call void @foo()
33 ; INL-MOD: define void @foo()
34 ; INL-MOD-NEXT:   call void @bar()
35 ; INL-MOD: define void @bar()
36 ; INL-MOD-NEXT:  call void @foo()
37 ; INL-MOD: IR Dump After
38 ; INL-MOD-NEXT: ModuleID =
39 ; INL-MOD-NEXT: source_filename =
40 ; INL-MOD-NOT: Printing <null> Function
42 define void @tester() noinline {
43   call void @foo()
44   ret void
47 define void @foo() noinline {
48   call void @bar()
49   ret void
52 define void @bar() noinline {
53   call void @foo()
54   ret void