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