xref: /aosp_15_r20/external/llvm/test/Other/2010-05-06-Printer.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llc -O2 -print-after-all < %s 2>/dev/null
2*9880d681SAndroid Build Coastguard Worker; RUN: llc -O2 -print-after-all < %s 2>&1 | FileCheck %s --check-prefix=ALL
3*9880d681SAndroid Build Coastguard Worker; RUN: llc -O2 -print-after-all -filter-print-funcs=foo < %s 2>&1 | FileCheck %s --check-prefix=FOO
4*9880d681SAndroid Build Coastguard Worker; REQUIRES: default_triple
5*9880d681SAndroid Build Coastguard Workerdefine void @tester(){
6*9880d681SAndroid Build Coastguard Worker  ret void
7*9880d681SAndroid Build Coastguard Worker}
8*9880d681SAndroid Build Coastguard Worker
9*9880d681SAndroid Build Coastguard Workerdefine void @foo(){
10*9880d681SAndroid Build Coastguard Worker  ret void
11*9880d681SAndroid Build Coastguard Worker}
12*9880d681SAndroid Build Coastguard Worker
13*9880d681SAndroid Build Coastguard Worker;ALL: define void @tester()
14*9880d681SAndroid Build Coastguard Worker;ALL: define void @foo()
15*9880d681SAndroid Build Coastguard Worker;ALL: ModuleID =
16*9880d681SAndroid Build Coastguard Worker
17*9880d681SAndroid Build Coastguard Worker;FOO: IR Dump After
18*9880d681SAndroid Build Coastguard Worker;FOO-NEXT: define void @foo()
19*9880d681SAndroid Build Coastguard Worker;FOO-NOT: define void @tester
20