1 // RUN: mlir-opt %s -transform-interpreter -verify-diagnostics -allow-unregistered-dialect -split-input-file | FileCheck %s
3 // CHECK-LABEL: func @lower_to_llvm
4 // CHECK-NOT: vector.bitcast
6 func.func @lower_to_llvm(%input: vector<f32>) -> vector<i32> {
7 %0 = vector.bitcast %input : vector<f32> to vector<i32>
8 return %0 : vector<i32>
11 module attributes {transform.with_named_sequence} {
12 transform.named_sequence @__transform_main(%arg1: !transform.any_op {transform.readonly}) {
13 %0 = transform.structured.match ops{["func.func"]} in %arg1 : (!transform.any_op) -> !transform.any_op
14 transform.apply_conversion_patterns to %0 {
15 transform.apply_conversion_patterns.vector.vector_to_llvm
16 } with type_converter {
17 transform.apply_conversion_patterns.memref.memref_to_llvm_type_converter
18 } {legal_dialects = ["func", "llvm"]} : !transform.any_op