brintos

brintos / llvm-project-archived public Read only

0
0
Text · 446 B · 968d7e3 Raw
14 lines · plain
1// RUN: mlir-opt %s -test-legalize-unknown-root-patterns | FileCheck %s2 3// Test that all `test` dialect operations are removed.4// CHECK-LABEL: func @remove_all_ops5func.func @remove_all_ops(%arg0: i32) {6  // CHECK-NEXT: return7  %0 = "test.illegal_op_a"() : () -> i328  %1 = "test.illegal_op_b"() : () -> i329  %2 = "test.illegal_op_c"() : () -> i3210  %3 = "test.illegal_op_d"() : () -> i3211  %4 = "test.illegal_op_e"() : () -> i3212  return13}14