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