Back to PBT run
input.generic.mlir
"builtin.module"() ({
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (memref<8xi32>, f32) -> (), sym_name = "thread_0", sym_visibility = "private"}> ({
^bb0(%arg8: memref<8xi32>, %arg9: f32, %arg10: none, %arg11: index, %arg12: index):
%13 = "arith.constant"() <{value = 7 : i32}> : () -> i32
"scf.forall"() <{operandSegmentSizes = array<i32: 0, 0, 0, 0>, staticLowerBound = array<i64: 0>, staticStep = array<i64: 1>, staticUpperBound = array<i64: 8>}> ({
^bb0(%arg13: index):
"memref.store"(%13, %arg8, %arg13) : (i32, memref<8xi32>, index) -> ()
"scf.forall.in_parallel"() ({
^bb0:
}) : () -> ()
}) : () -> ()
"dataflow.thread.yield"() : () -> ()
}) : () -> ()
"func.func"() <{function_type = () -> (), sym_name = "host_0"}> ({
%8 = "memref.alloc"() <{operandSegmentSizes = array<i32: 0, 0>}> : () -> memref<8xi32>
%9 = "arith.constant"() <{value = 1.000000e+00 : f32}> : () -> f32
%10 = "arith.constant"() <{value = 4 : index}> : () -> index
%11 = "arith.constant"() <{value = 4 : index}> : () -> index
%12 = "dataflow.thread.launch"(%8, %9, %10, %11) <{callee = @thread_0, operandSegmentSizes = array<i32: 2, 2, 0>}> : (memref<8xi32>, f32, index, index) -> !dataflow.thread_token
"func.return"() : () -> ()
}) : () -> ()
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (memref<8xi32>) -> (), sym_name = "thread_1", sym_visibility = "private"}> ({
^bb0(%arg5: memref<8xi32>, %arg6: none):
%7 = "arith.constant"() <{value = 7 : i32}> : () -> i32
"scf.forall"() <{operandSegmentSizes = array<i32: 0, 0, 0, 0>, staticLowerBound = array<i64: 0>, staticStep = array<i64: 1>, staticUpperBound = array<i64: 8>}> ({
^bb0(%arg7: index):
"memref.store"(%7, %arg5, %arg7) : (i32, memref<8xi32>, index) -> ()
"scf.forall.in_parallel"() ({
^bb0:
}) : () -> ()
}) : () -> ()
"dataflow.thread.yield"() : () -> ()
}) : () -> ()
"func.func"() <{function_type = () -> (), sym_name = "host_1"}> ({
%5 = "memref.alloc"() <{operandSegmentSizes = array<i32: 0, 0>}> : () -> memref<8xi32>
%6 = "dataflow.thread.launch"(%5) <{callee = @thread_1, operandSegmentSizes = array<i32: 1, 0, 0>}> : (memref<8xi32>) -> !dataflow.thread_token
"func.return"() : () -> ()
}) : () -> ()
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (memref<8xi32>, i32) -> (), sym_name = "thread_2", sym_visibility = "private"}> ({
^bb0(%arg0: memref<8xi32>, %arg1: i32, %arg2: none, %arg3: index):
%4 = "arith.constant"() <{value = 7 : i32}> : () -> i32
"scf.forall"() <{operandSegmentSizes = array<i32: 0, 0, 0, 0>, staticLowerBound = array<i64: 0>, staticStep = array<i64: 1>, staticUpperBound = array<i64: 4>}> ({
^bb0(%arg4: index):
"memref.store"(%4, %arg0, %arg4) : (i32, memref<8xi32>, index) -> ()
"scf.forall.in_parallel"() ({
^bb0:
}) : () -> ()
}) : () -> ()
"dataflow.thread.yield"(%arg2) : (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 = 4 : index}> : () -> index
%3 = "dataflow.thread.launch"(%0, %1, %2) <{callee = @thread_2, operandSegmentSizes = array<i32: 2, 1, 0>}> : (memref<8xi32>, i32, index) -> !dataflow.thread_token
"func.return"() : () -> ()
}) : () -> ()
}) : () -> ()