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(%arg6: index, %arg7: memref<?xindex>, %arg8: none):
%6 = "arith.constant"() <{value = 0 : index}> : () -> index
%7 = "arith.constant"() <{value = 1 : index}> : () -> index
"memref.store"(%7, %arg7, %6) : (index, memref<?xindex>, index) -> ()
"dataflow.thread.yield"() : () -> ()
}) : () -> ()
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (index, memref<?xindex>) -> (), sym_name = "thread_1", sym_visibility = "private"}> ({
^bb0(%arg3: index, %arg4: memref<?xindex>, %arg5: none):
%5 = "dataflow.graph.launch"(%arg5, %arg3, %arg4) <{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"(%5) : (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 = 1 : index}> : (none) -> index
%1 = "dataflow.constant"(%arg0) <{const_value = 0 : index}> : (none) -> index
%2 = "dataflow.store"(%arg2, %1, %0, %arg0) : (memref<?xindex>, index, index, none) -> none
%3 = "dataflow.store"(%arg2, %0, %0, %arg0) : (memref<?xindex>, index, index, none) -> none
%4:2 = "dataflow.sync"(%2, %3) : (none, none) -> (none, none)
"dataflow.graph.return"(%4#0) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
}) : () -> ()
}) : () -> ()