1 // This test exercises the example in docs/ActionTracing.md ; changes here
2 // should probably be reflected there.
4 // RUN: mlir-opt %s -mlir-debug-counter=unique-tag-for-my-action-skip=-1 -mlir-print-debug-counter --pass-pipeline="builtin.module(func.func(canonicalize))" --mlir-disable-threading 2>&1 | FileCheck %s --check-prefix=CHECK-UNKNOWN-TAG
5 // RUN: mlir-opt %s -mlir-debug-counter=pass-execution-skip=1 -mlir-print-debug-counter --pass-pipeline="builtin.module(func.func(canonicalize))" --mlir-disable-threading 2>&1 | FileCheck %s --check-prefix=CHECK-PASS
11 // CHECK-UNKNOWN-TAG: DebugCounter counters:
12 // CHECK-UNKNOWN-TAG: unique-tag-for-my-action : {0,-1,-1}
14 // CHECK-PASS: DebugCounter counters:
15 // CHECK-PASS: pass-execution : {1,1,-1}