Filtering IR printing for print-after-all/print-before-all
[oota-llvm.git] / test / Other / 2010-05-06-Printer.ll
1 ; RUN: llc -O2 -print-after-all < %s 2>/dev/null
2 ; RUN: llc -O2 -print-after-all < %s 2>&1 | FileCheck %s --check-prefix=ALL
3 ; RUN: llc -O2 -print-after-all -filter-print-funcs=foo < %s 2>&1 | FileCheck %s --check-prefix=FOO
4 ; REQUIRES: default_triple
5 define void @tester(){
6   ret void
7 }
8
9 define void @foo(){
10   ret void
11 }
12
13 ;ALL: define void @tester()
14 ;ALL: define void @foo()
15 ;ALL: ModuleID =
16
17 ;FOO: IR Dump After
18 ;FOO-NEXT: define void @foo()
19 ;FOO-NOT: define void @tester