|
2 | 2 | // RUN: --allow-unregistered-dialect --debug-only=pattern-logging-listener 2>&1 | FileCheck %s
|
3 | 3 |
|
4 | 4 | // Check that when replacing an op with a new op, we get appropriate
|
5 |
| -// pattern-logging lines. The regex is because the anonymous namespace is |
6 |
| -// printed differently on different platforms. |
| 5 | +// pattern-logging lines. The use of check same is to avoid the complexity of |
| 6 | +// matching the anonymous namespace prefix, which can be one of {anonymous} vs |
| 7 | +// {anonymous_namespace} vs `anonymous_namespace` (and maybe others?) on the |
| 8 | +// various platforms. |
7 | 9 |
|
8 |
| -// CHECK: [pattern-logging-listener] {{.anonymous.namespace.}}::ReplaceWithNewOp | notifyOperationInserted | test.new_op |
9 |
| -// CHECK: [pattern-logging-listener] {{.anonymous.namespace.}}::ReplaceWithNewOp | notifyOperationReplaced (with values) | test.replace_with_new_op |
10 |
| -// CHECK: [pattern-logging-listener] {{.anonymous.namespace.}}::ReplaceWithNewOp | notifyOperationModified | arith.addi |
11 |
| -// CHECK: [pattern-logging-listener] {{.anonymous.namespace.}}::ReplaceWithNewOp | notifyOperationModified | arith.addi |
12 |
| -// CHECK: [pattern-logging-listener] {{.anonymous.namespace.}}::ReplaceWithNewOp | notifyOperationErased | test.replace_with_new_op |
| 10 | +// CHECK: [pattern-logging-listener] |
| 11 | +// CHECK-SAME: ::ReplaceWithNewOp | notifyOperationInserted | test.new_op |
| 12 | +// CHECK: [pattern-logging-listener] |
| 13 | +// CHECK-SAME: ::ReplaceWithNewOp | notifyOperationReplaced (with values) | test.replace_with_new_op |
| 14 | +// CHECK: [pattern-logging-listener] |
| 15 | +// CHECK-SAME: ::ReplaceWithNewOp | notifyOperationModified | arith.addi |
| 16 | +// CHECK: [pattern-logging-listener] |
| 17 | +// CHECK-SAME: ::ReplaceWithNewOp | notifyOperationModified | arith.addi |
| 18 | +// CHECK: [pattern-logging-listener] |
| 19 | +// CHECK-SAME: ::ReplaceWithNewOp | notifyOperationErased | test.replace_with_new_op |
13 | 20 | func.func @replace_with_new_op() -> i32 {
|
14 | 21 | %a = "test.replace_with_new_op"() : () -> (i32)
|
15 | 22 | %res = arith.addi %a, %a : i32
|
|
0 commit comments