Back to PBT run
output.generic.mlir
"builtin.module"() ({
"llvm.func"() <{CConv = #llvm.cconv<ccc>, function_type = !llvm.func<i64 (i64)>, linkage = #llvm.linkage<external>, sym_name = "imported_callable", unnamed_addr = 0 : i64, visibility_ = 0 : i64}> ({
}) : () -> ()
"func.func"() <{function_type = (i32) -> i32, sym_name = "native_callable", sym_visibility = "private"}> ({
^bb0(%arg9: i32):
"func.return"(%arg9) : (i32) -> ()
}) : () -> ()
"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):
%7 = "dataflow.graph.launch"(%arg8, %arg6, %arg7) <{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"(%7) : (none) -> ()
}) : () -> ()
"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 = "arith.constant"() <{value = 0 : index}> : () -> index
%6 = "arith.constant"() <{value = 1 : index}> : () -> index
"memref.store"(%6, %arg4, %5) : (index, memref<?xindex>, index) -> ()
"dataflow.thread.yield"() : () -> ()
}) : () -> ()
"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(%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 = "arith.addi"(%3#0, %1) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
%3:2 = "dataflow.load"(%arg2, %0, %arg0) : (memref<?xindex>, index, none) -> (index, none)
%4 = "dataflow.store"(%arg2, %0, %2, %3#1) : (memref<?xindex>, index, index, none) -> none
"dataflow.graph.return"(%4) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
}) : () -> ()
}) : () -> ()