Back to PBT run
output.generic.mlir
"builtin.module"() ({
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (index, memref<?xindex>) -> (), sym_name = "thread_0", sym_visibility = "private"}> ({
^bb0(%arg9: index, %arg10: memref<?xindex>, %arg11: none):
%11 = "dataflow.graph.launch"(%arg11, %arg9, %arg10) <{callee = @g_thread_0, operandSegmentSizes = array<i32: 1, 1, 0, 1, 0>, resultSegmentSizes = array<i32: 0, 0, 1>, source_maps = []}> : (none, index, memref<?xindex>) -> none
"dataflow.thread.yield"(%11) : (none) -> ()
}) : () -> ()
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (index, memref<?xindex>) -> (), sym_name = "thread_1", sym_visibility = "private"}> ({
^bb0(%arg6: index, %arg7: memref<?xindex>, %arg8: none):
%10 = "dataflow.graph.launch"(%arg8, %arg6, %arg7) <{callee = @g_thread_1, operandSegmentSizes = array<i32: 1, 1, 0, 1, 0>, resultSegmentSizes = array<i32: 0, 0, 1>, source_maps = []}> : (none, index, memref<?xindex>) -> none
"dataflow.thread.yield"(%10) : (none) -> ()
}) : () -> ()
"dataflow.graph"() <{arg_attrs = [{}, {llvm.noalias}], function_type = (index, memref<?xindex>) -> (), input_segments = array<i32: 1, 0, 1>, result_segments = array<i32: 0, 0, 0>, sym_name = "g_thread_0", sym_visibility = "private"}> ({
^bb0(%arg3: none, %arg4: index, %arg5: memref<?xindex>):
%3 = "dataflow.constant"(%arg3) <{const_value = 1 : index}> : (none) -> index
%4 = "dataflow.constant"(%arg3) <{const_value = 0 : index}> : (none) -> index
%5 = "dataflow.store"(%arg5, %4, %3, %arg3) : (memref<?xindex>, index, index, none) -> none
%6 = "dataflow.store"(%arg5, %4, %3, %5) : (memref<?xindex>, index, index, none) -> none
%7 = "dataflow.store"(%arg5, %3, %3, %arg3) : (memref<?xindex>, index, index, none) -> none
%8 = "dataflow.store"(%arg5, %3, %3, %7) : (memref<?xindex>, index, index, none) -> none
%9:2 = "dataflow.sync"(%6, %8) : (none, none) -> (none, none)
"dataflow.graph.return"(%9#0) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
}) : () -> ()
"dataflow.graph"() <{arg_attrs = [{}, {llvm.noalias}], function_type = (index, memref<?xindex>) -> (), input_segments = array<i32: 1, 0, 1>, result_segments = array<i32: 0, 0, 0>, sym_name = "g_thread_1", sym_visibility = "private"}> ({
^bb0(%arg0: none, %arg1: index, %arg2: memref<?xindex>):
%0 = "dataflow.constant"(%arg0) <{const_value = 0 : index}> : (none) -> index
%1 = "dataflow.constant"(%arg0) <{const_value = 1 : index}> : (none) -> index
%2 = "dataflow.store"(%arg2, %0, %1, %arg0) : (memref<?xindex>, index, index, none) -> none
"dataflow.graph.return"(%2) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
}) : () -> ()
}) : () -> ()