10 lines · plain
1// RUN: mlir-opt %s -test-legalize-patterns="test-legalize-folding-mode=before-patterns" | FileCheck %s2 3// CHECK-LABEL: @fold_legalization4func.func @fold_legalization() -> i32 {5 // CHECK: op_in_place_self_fold6 // CHECK-SAME: folded7 %1 = "test.op_in_place_self_fold"() : () -> (i32)8 "test.return"(%1) : (i32) -> ()9}10