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
13 lines
431 B
MLIR
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
|
|
}
|