Back to PBT run
output.generic.mlir
"builtin.module"() ({
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (i32, memref<4xi32>, !dataflow.channel<i32>, i1) -> (), sym_name = "thread_0", sym_visibility = "private"}> ({
^bb0(%arg17: i32, %arg18: memref<4xi32>, %arg19: !dataflow.channel<i32>, %arg20: i1, %arg21: none):
%12 = "arith.constant"() <{value = 0 : index}> : () -> index
%13 = "arith.constant"() <{value = 1 : index}> : () -> index
%14 = "arith.constant"() <{value = 4 : index}> : () -> index
%15 = "dataflow.graph.launch"(%arg21, %arg17, %arg19) <{callee = @graph_0, operandSegmentSizes = array<i32: 1, 1, 0, 0, 1>, resultSegmentSizes = array<i32: 0, 0, 1>, source_maps = []}> : (none, i32, !dataflow.channel<i32>) -> none
"dataflow.thread.yield"(%15) : (none) -> ()
}) : () -> ()
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (i32, memref<4xi32>, !dataflow.channel<i32>, i1) -> (), sym_name = "thread_1", sym_visibility = "private"}> ({
^bb0(%arg12: i32, %arg13: memref<4xi32>, %arg14: !dataflow.channel<i32>, %arg15: i1, %arg16: none):
%8 = "arith.constant"() <{value = 0 : index}> : () -> index
%9 = "arith.constant"() <{value = 1 : index}> : () -> index
%10 = "arith.constant"() <{value = 4 : index}> : () -> index
%11 = "dataflow.graph.launch"(%arg16, %arg12, %arg14) <{callee = @graph_1, operandSegmentSizes = array<i32: 1, 1, 0, 0, 1>, resultSegmentSizes = array<i32: 0, 0, 1>, source_maps = []}> : (none, i32, !dataflow.channel<i32>) -> none
"dataflow.thread.yield"(%11) : (none) -> ()
}) : () -> ()
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (i32, memref<4xi32>, !dataflow.channel<i32>, i1) -> (), sym_name = "thread_2", sym_visibility = "private"}> ({
^bb0(%arg5: i32, %arg6: memref<4xi32>, %arg7: !dataflow.channel<i32>, %arg8: i1, %arg9: none):
%2 = "arith.constant"() <{value = 0 : index}> : () -> index
%3 = "arith.constant"() <{value = 1 : index}> : () -> index
%4 = "arith.constant"() <{value = 4 : index}> : () -> index
%5 = "scf.for"(%2, %4, %3, %arg9) ({
^bb0(%arg10: index, %arg11: none):
%6 = "scf.if"(%arg8) ({
%7 = "dataflow.graph.launch"(%arg11) <{callee = @graph_2, operandSegmentSizes = array<i32: 1, 0, 0, 0, 0>, resultSegmentSizes = array<i32: 0, 0, 1>, source_maps = []}> : (none) -> none
"scf.yield"(%7) : (none) -> ()
}, {
"scf.yield"(%arg11) : (none) -> ()
}) : (i1) -> none
"scf.yield"(%6) : (none) -> ()
}) : (index, index, index, none) -> none
"dataflow.thread.yield"(%5) : (none) -> ()
}) : () -> ()
"dataflow.graph"() <{function_type = (i32) -> i32, input_segments = array<i32: 1, 0, 0>, result_segments = array<i32: 0, 1, 0>, sym_name = "graph_0", sym_visibility = "private"}> ({
^bb0(%arg3: none, %arg4: i32):
%1:2 = "dataflow.sync"(%arg3, %arg4) : (none, i32) -> (none, i32)
"dataflow.graph.return"(%1#1, %1#0) <{operandSegmentSizes = array<i32: 0, 1, 0, 1>}> : (i32, none) -> ()
}) : () -> ()
"dataflow.graph"() <{function_type = (i32) -> i32, input_segments = array<i32: 1, 0, 0>, result_segments = array<i32: 0, 1, 0>, sym_name = "graph_1", sym_visibility = "private"}> ({
^bb0(%arg1: none, %arg2: i32):
%0:2 = "dataflow.sync"(%arg1, %arg2) : (none, i32) -> (none, i32)
"dataflow.graph.return"(%0#1, %0#0) <{operandSegmentSizes = array<i32: 0, 1, 0, 1>}> : (i32, none) -> ()
}) : () -> ()
"dataflow.graph"() <{function_type = () -> (), input_segments = array<i32: 0, 0, 0>, result_segments = array<i32: 0, 0, 0>, sym_name = "graph_2", sym_visibility = "private"}> ({
^bb0(%arg0: none):
"dataflow.graph.return"(%arg0) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
}) : () -> ()
}) : () -> ()