Back to PBT run

input.generic.mlir

"builtin.module"() ({
  "dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (f32, i64, index) -> (), sym_name = "t_0", sym_visibility = "private"}> ({
  ^bb0(%arg7: f32, %arg8: i64, %arg9: index, %arg10: none, %arg11: index):
    "dataflow.thread.yield"(%arg10) : (none) -> ()
  }) : () -> ()
  "dataflow.thread"() <{domain = #dataflow.thread_domain<dynamic_work, work_item_arg = 0>, function_type = (f32) -> (), sym_name = "t_1", sym_visibility = "private"}> ({
  ^bb0(%arg5: f32, %arg6: none):
    "dataflow.thread.yield"() : () -> ()
  }) : () -> ()
  "dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (memref<?xf32>) -> (), sym_name = "t_2", sym_visibility = "private"}> ({
  ^bb0(%arg1: memref<?xf32>, %arg2: none, %arg3: index, %arg4: index):
    "dataflow.thread.yield"(%arg2) : (none) -> ()
  }) : () -> ()
  "func.func"() <{function_type = (memref<?xf32>) -> (), sym_name = "host"}> ({
  ^bb0(%arg0: memref<?xf32>):
    %0 = "arith.constant"() <{value = 1 : i32}> : () -> i32
    %1 = "arith.constant"() <{value = 1.000000e+00 : f32}> : () -> f32
    %2 = "arith.constant"() <{value = 1 : i64}> : () -> i64
    %3 = "arith.constant"() <{value = 4 : index}> : () -> index
    %4 = "dataflow.thread.launch"(%1, %2, %3, %3) <{callee = @t_0, operandSegmentSizes = array<i32: 3, 1, 0>}> : (f32, i64, index, index) -> !dataflow.thread_token
    "dataflow.thread.wait"(%4) : (!dataflow.thread_token) -> ()
    %5 = "dataflow.thread.launch"(%1) <{callee = @t_1, operandSegmentSizes = array<i32: 1, 0, 0>}> : (f32) -> !dataflow.thread_token
    %6 = "dataflow.thread.launch"(%arg0, %3, %3) <{callee = @t_2, operandSegmentSizes = array<i32: 1, 2, 0>}> : (memref<?xf32>, index, index) -> !dataflow.thread_token
    "dataflow.thread.wait"(%6) : (!dataflow.thread_token) -> ()
    "func.return"() : () -> ()
  }) : () -> ()
}) : () -> ()