blob: 968d7e3763fb58ada7c4658a971033622d913530 [file] [log] [blame]
River Riddle80d7ac32020-06-18 20:58:251// RUN: mlir-opt %s -test-legalize-unknown-root-patterns | FileCheck %s
2
3// Test that all `test` dialect operations are removed.
4// CHECK-LABEL: func @remove_all_ops
River Riddlecda6aa72022-04-20 23:22:215func.func @remove_all_ops(%arg0: i32) {
River Riddle80d7ac32020-06-18 20:58:256 // CHECK-NEXT: return
7 %0 = "test.illegal_op_a"() : () -> i32
8 %1 = "test.illegal_op_b"() : () -> i32
9 %2 = "test.illegal_op_c"() : () -> i32
10 %3 = "test.illegal_op_d"() : () -> i32
11 %4 = "test.illegal_op_e"() : () -> i32
12 return
13}