1// RUN: mlir-opt %s -verify-each=true -pass-pipeline='func(test-stats-pass,test-stats-pass)' -pass-statistics -pass-statistics-display=list 2>&1 | FileCheck -check-prefix=LIST %s 2// RUN: mlir-opt %s -verify-each=true -pass-pipeline='func(test-stats-pass,test-stats-pass)' -pass-statistics -pass-statistics-display=pipeline 2>&1 | FileCheck -check-prefix=PIPELINE %s 3 4// LIST: Pass statistics report 5// LIST: TestStatisticPass 6// LIST-NEXT: (S) {{0|8}} num-ops - Number of operations counted 7// LIST-NOT: Verifier 8 9// PIPELINE: Pass statistics report 10// PIPELINE: 'func' Pipeline 11// PIPELINE-NEXT: TestStatisticPass 12// PIPELINE-NEXT: (S) {{0|4}} num-ops - Number of operations counted 13// PIPELINE-NEXT: TestStatisticPass 14// PIPELINE-NEXT: (S) {{0|4}} num-ops - Number of operations counted 15 16func @foo() { 17 return 18} 19 20func @bar() { 21 return 22} 23