Files
clang-p2996/mlir/test/Transforms/test-rewrite-dynamic-op.mlir
River Riddle a8308020ac [mlir] Remove special case parsing/printing of func operations
This was leftover from when the standard dialect was destroyed, and
when FuncOp moved to the func dialect. Now that these transitions
have settled a bit we can drop these.

Most updates were handled using a simple regex: replace `^( *)func` with `$1func.func`

Differential Revision: https://reviews.llvm.org/D124146
2022-05-06 13:36:15 -07:00

13 lines
431 B
MLIR

// RUN: mlir-opt %s -test-rewrite-dynamic-op | FileCheck %s
// Test that `test.one_operand_two_results` is replaced with
// `test.generic_dynamic_op`.
// CHECK-LABEL: func @rewrite_dynamic_op
func.func @rewrite_dynamic_op(%arg0: i32) {
// CHECK-NEXT: %{{.*}}:2 = "test.dynamic_generic"(%arg0) : (i32) -> (i32, i32)
%0:2 = "test.dynamic_one_operand_two_results"(%arg0) : (i32) -> (i32, i32)
// CHECK-NEXT: return
return
}