Back to PBT run
input.generic.mlir
"builtin.module"() ({
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (memref<8xi32>) -> (), sym_name = "thread_0", sym_visibility = "private"}> ({
^bb0(%arg12: memref<8xi32>, %arg13: none, %arg14: index):
%17 = "arith.constant"() <{value = 7 : i32}> : () -> i32
"dataflow.thread.yield"(%arg13) : (none) -> ()
}) : () -> ()
"func.func"() <{function_type = () -> (), sym_name = "host_0"}> ({
%14 = "memref.alloc"() <{operandSegmentSizes = array<i32: 0, 0>}> : () -> memref<8xi32>
%15 = "arith.constant"() <{value = 4 : index}> : () -> index
%16 = "dataflow.thread.launch"(%14, %15) <{callee = @thread_0, operandSegmentSizes = array<i32: 1, 1, 0>}> : (memref<8xi32>, index) -> !dataflow.thread_token
"func.return"() : () -> ()
}) : () -> ()
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (memref<8xi32>, index, index) -> (), sym_name = "thread_1", sym_visibility = "private"}> ({
^bb0(%arg6: memref<8xi32>, %arg7: index, %arg8: index, %arg9: none, %arg10: index, %arg11: index):
%13 = "arith.constant"() <{value = 7 : i32}> : () -> i32
"dataflow.thread.yield"() : () -> ()
}) : () -> ()
"func.func"() <{function_type = () -> (), sym_name = "host_1"}> ({
%7 = "memref.alloc"() <{operandSegmentSizes = array<i32: 0, 0>}> : () -> memref<8xi32>
%8 = "arith.constant"() <{value = 2 : index}> : () -> index
%9 = "arith.constant"() <{value = 2 : index}> : () -> index
%10 = "arith.constant"() <{value = 4 : index}> : () -> index
%11 = "arith.constant"() <{value = 4 : index}> : () -> index
%12 = "dataflow.thread.launch"(%7, %8, %9, %10, %11) <{callee = @thread_1, operandSegmentSizes = array<i32: 3, 2, 0>}> : (memref<8xi32>, index, index, index, index) -> !dataflow.thread_token
"func.return"() : () -> ()
}) : () -> ()
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (memref<8xi32>, i32, index) -> (), sym_name = "thread_2", sym_visibility = "private"}> ({
^bb0(%arg0: memref<8xi32>, %arg1: i32, %arg2: index, %arg3: none, %arg4: index, %arg5: index):
%6 = "arith.constant"() <{value = 7 : i32}> : () -> i32
"dataflow.thread.yield"(%arg3) : (none) -> ()
}) : () -> ()
"func.func"() <{function_type = () -> (), sym_name = "host_2"}> ({
%0 = "memref.alloc"() <{operandSegmentSizes = array<i32: 0, 0>}> : () -> memref<8xi32>
%1 = "arith.constant"() <{value = 3 : i32}> : () -> i32
%2 = "arith.constant"() <{value = 2 : index}> : () -> index
%3 = "arith.constant"() <{value = 4 : index}> : () -> index
%4 = "arith.constant"() <{value = 4 : index}> : () -> index
%5 = "dataflow.thread.launch"(%0, %1, %2, %3, %4) <{callee = @thread_2, operandSegmentSizes = array<i32: 3, 2, 0>}> : (memref<8xi32>, i32, index, index, index) -> !dataflow.thread_token
"func.return"() : () -> ()
}) : () -> ()
}) : () -> ()