brintos

brintos / llvm-project-archived public Read only

0
0
Text · 612 B · 5c7c8bf Raw
20 lines · plain
1// RUN: mlir-transform-opt %s | FileCheck %s2 3module attributes {transform.with_named_sequence} {4  // CHECK-LABEL: @return_425  // CHECK: %[[C42:.+]] = arith.constant 426  // CHECK: return %[[C42]]7  func.func @return_42() -> i32 {8    %0 = arith.constant 21 : i329    %1 = arith.constant 2 : i3210    %2 = arith.muli %0, %1 : i3211    return %2 : i3212  }13 14  transform.named_sequence @__transform_main(%arg0: !transform.any_op) {15    %arg1 = transform.apply_registered_pass "canonicalize" to %arg0 : (!transform.any_op) -> !transform.any_op16    transform.print %arg1 : !transform.any_op17    transform.yield18  }19}20