Mercurial > hg > CbC > CbC_llvm
view mlir/test/Pass/pipeline-stats.mlir @ 256:7d9b19ec7a62
cbclang output is still wrong
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 18:48:47 +0900 |
parents | 1f2b6ac9f198 |
children |
line wrap: on
line source
// REQUIRES: asserts // 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 // 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 // LIST: Pass statistics report // LIST: TestStatisticPass // LIST-NEXT: (S) {{0|8}} num-ops - Number of operations counted // LIST-NEXT: (S) {{0|8}} num-ops2 - Number of operations counted one more time // LIST-NOT: Verifier // PIPELINE: Pass statistics report // PIPELINE: 'func.func' Pipeline // PIPELINE-NEXT: TestStatisticPass // PIPELINE-NEXT: (S) {{0|4}} num-ops - Number of operations counted // PIPELINE-NEXT: (S) {{0|4}} num-ops2 - Number of operations counted one more time // PIPELINE-NEXT: TestStatisticPass // PIPELINE-NEXT: (S) {{0|4}} num-ops - Number of operations counted // PIPELINE-NEXT: (S) {{0|4}} num-ops2 - Number of operations counted one more time func.func @foo() { return } func.func @bar() { return }