Back to PBT run
input.generic.mlir
"builtin.module"() ({
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (index, memref<?xindex>) -> (), sym_name = "thread_0", sym_visibility = "private"}> ({
^bb0(%arg7: index, %arg8: memref<?xindex>, %arg9: none):
"loom.spatial_region"(%arg7, %arg8) <{graph_name = "g_thread_0", operandSegmentSizes = array<i32: 1, 0, 1, 0>, resultSegmentSizes = array<i32: 0, 0>, source_maps = []}> ({
^bb0(%arg10: index, %arg11: memref<?xindex>):
%7 = "arith.constant"() <{value = 0 : index}> : () -> index
%8 = "arith.constant"() <{value = 1 : index}> : () -> index
%9 = "arith.constant"() <{value = 2 : index}> : () -> index
%10 = "arith.cmpi"(%7, %9) <{predicate = 6 : i64}> : (index, index) -> i1
%11 = "scf.while"(%7) ({
^bb0(%arg14: index):
%15 = "arith.cmpi"(%arg14, %9) <{predicate = 6 : i64}> : (index, index) -> i1
"scf.condition"(%15, %arg14) : (i1, index) -> ()
}, {
^bb0(%arg13: index):
"memref.store"(%8, %arg11, %7) : (index, memref<?xindex>, index) -> ()
"memref.store"(%8, %arg11, %7) : (index, memref<?xindex>, index) -> ()
%14 = "arith.addi"(%arg13, %8) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
"scf.yield"(%14) : (index) -> ()
}) : (index) -> index
"scf.parallel"(%7, %9, %8) <{operandSegmentSizes = array<i32: 1, 1, 1, 0>}> ({
^bb0(%arg12: index):
%12 = "arith.muli"(%7, %9) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
%13 = "arith.addi"(%12, %arg12) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
"memref.store"(%8, %arg11, %13) : (index, memref<?xindex>, index) -> ()
"scf.reduce"() : () -> ()
}) : (index, index, index) -> ()
"loom.spatial_yield"() <{operandSegmentSizes = array<i32: 0, 0>}> : () -> ()
}) : (index, memref<?xindex>) -> ()
"dataflow.thread.yield"() : () -> ()
}) : () -> ()
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (index, memref<?xindex>) -> (), sym_name = "thread_1", sym_visibility = "private"}> ({
^bb0(%arg0: index, %arg1: memref<?xindex>, %arg2: none):
"loom.spatial_region"(%arg0, %arg1) <{graph_name = "g_thread_1", operandSegmentSizes = array<i32: 1, 0, 1, 0>, resultSegmentSizes = array<i32: 0, 0>, source_maps = []}> ({
^bb0(%arg3: index, %arg4: memref<?xindex>):
%0 = "arith.constant"() <{value = 0 : index}> : () -> index
%1 = "arith.constant"() <{value = 1 : index}> : () -> index
%2 = "arith.constant"() <{value = 2 : index}> : () -> index
%3 = "arith.cmpi"(%0, %2) <{predicate = 6 : i64}> : (index, index) -> i1
%4 = "scf.while"(%0) ({
^bb0(%arg6: index):
%6 = "arith.cmpi"(%arg6, %2) <{predicate = 6 : i64}> : (index, index) -> i1
"scf.condition"(%6, %arg6) : (i1, index) -> ()
}, {
^bb0(%arg5: index):
"memref.store"(%1, %arg4, %0) : (index, memref<?xindex>, index) -> ()
%5 = "arith.addi"(%arg5, %1) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
"scf.yield"(%5) : (index) -> ()
}) : (index) -> index
"loom.spatial_yield"() <{operandSegmentSizes = array<i32: 0, 0>}> : () -> ()
}) : (index, memref<?xindex>) -> ()
"dataflow.thread.yield"() : () -> ()
}) : () -> ()
}) : () -> ()