brintos

brintos / llvm-project-archived public Read only

0
0
Text · 821 B · 6c8c0bf Raw
26 lines · plain
1// RUN: mlir-opt --transform-interpreter --split-input-file --verify-diagnostics %s2 3module attributes {transform.with_named_sequence} {4  transform.named_sequence @__transform_main(%arg0: !transform.any_op) {5    %0 = transform.irdl.collect_matching in %arg0 : (!transform.any_op) -> (!transform.any_op){6    ^bb0(%arg1: !transform.any_op):7      irdl.dialect @test {8        irdl.operation @whatever {9          %0 = irdl.is i3210          %1 = irdl.is i6411          %2 = irdl.any_of(%0, %1)12          irdl.results(foo: %2)13        }14      }15    }16    transform.debug.emit_remark_at %0, "matched" : !transform.any_op17    transform.yield18  }19 20  // expected-remark @below {{matched}}21  "test.whatever"() : () -> i3222  "test.whatever"() : () -> f3223  // expected-remark @below {{matched}}24  "test.whatever"() : () -> i6425}26