llvm-project
20 строк · 597.0 Байт
1; RUN: opt < %s 2>&1 -disable-output \
2; RUN: -passes=inline -print-before-all -print-after-all | FileCheck %s
3; RUN: opt < %s 2>&1 -disable-output \
4; RUN: -passes=inline -print-before-all -print-after-all -print-module-scope | FileCheck %s
5
6; CHECK: IR Dump Before InlinerPass on (tester, foo)
7; CHECK: IR Dump After InlinerPass on (tester, foo)
8; CHECK: IR Dump Before InlinerPass on (tester)
9; CHECK: IR Dump After InlinerPass on (tester)
10
11
12define void @tester() noinline {
13call void @foo()
14ret void
15}
16
17define internal void @foo() alwaysinline {
18call void @tester()
19ret void
20}
21