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(%arg8: index, %arg9: memref<?xindex>, %arg10: none):
"loom.spatial_region"(%arg8, %arg9) <{graph_name = "g_thread_0", operandSegmentSizes = array<i32: 1, 0, 1, 0>, resultSegmentSizes = array<i32: 0, 0>, source_maps = []}> ({
^bb0(%arg11: index, %arg12: memref<?xindex>):
%11 = "arith.constant"() <{value = 0 : index}> : () -> index
%12 = "arith.constant"() <{value = 1 : index}> : () -> index
%13 = "arith.constant"() <{value = 2 : index}> : () -> index
%14 = "arith.cmpi"(%11, %13) <{predicate = 6 : i64}> : (index, index) -> i1
"scf.parallel"(%11, %13, %12) <{operandSegmentSizes = array<i32: 1, 1, 1, 0>}> ({
^bb0(%arg17: index):
%22 = "arith.muli"(%11, %13) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
%23 = "arith.addi"(%22, %arg17) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
%24 = "scf.while"(%11) ({
^bb0(%arg19: index):
%28 = "arith.cmpi"(%arg19, %13) <{predicate = 6 : i64}> : (index, index) -> i1
"scf.condition"(%28, %arg19) : (i1, index) -> ()
}, {
^bb0(%arg18: index):
%25 = "memref.load"(%arg12, %23) : (memref<?xindex>, index) -> index
%26 = "arith.addi"(%25, %12) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
"memref.store"(%26, %arg12, %23) : (index, memref<?xindex>, index) -> ()
%27 = "arith.addi"(%arg18, %12) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
"scf.yield"(%27) : (index) -> ()
}) : (index) -> index
"scf.reduce"() : () -> ()
}) : (index, index, index) -> ()
%15 = "scf.while"(%11) ({
^bb0(%arg16: index):
%21 = "arith.cmpi"(%arg16, %13) <{predicate = 6 : i64}> : (index, index) -> i1
"scf.condition"(%21, %arg16) : (i1, index) -> ()
}, {
^bb0(%arg13: index):
"scf.forall"() <{operandSegmentSizes = array<i32: 0, 0, 0, 0>, staticLowerBound = array<i64: 0>, staticStep = array<i64: 1>, staticUpperBound = array<i64: 2>}> ({
^bb0(%arg15: index):
%17 = "arith.muli"(%11, %13) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
%18 = "arith.addi"(%17, %arg15) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
%19 = "memref.load"(%arg12, %18) : (memref<?xindex>, index) -> index
%20 = "arith.addi"(%19, %12) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
"memref.store"(%20, %arg12, %18) : (index, memref<?xindex>, index) -> ()
"scf.forall.in_parallel"() ({
^bb0:
}) : () -> ()
}) : () -> ()
"scf.for"(%11, %13, %12) ({
^bb0(%arg14: index):
"memref.store"(%12, %arg12, %11) : (index, memref<?xindex>, index) -> ()
"scf.yield"() : () -> ()
}) : (index, index, index) -> ()
%16 = "arith.addi"(%arg13, %12) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
"scf.yield"(%16) : (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
"scf.forall"() <{operandSegmentSizes = array<i32: 0, 0, 0, 0>, staticLowerBound = array<i64: 0>, staticStep = array<i64: 1>, staticUpperBound = array<i64: 2>}> ({
^bb0(%arg5: index):
%4 = "arith.muli"(%0, %2) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
%5 = "arith.addi"(%4, %arg5) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
%6 = "scf.while"(%0) ({
^bb0(%arg7: index):
%10 = "arith.cmpi"(%arg7, %2) <{predicate = 6 : i64}> : (index, index) -> i1
"scf.condition"(%10, %arg7) : (i1, index) -> ()
}, {
^bb0(%arg6: index):
%7 = "memref.load"(%arg4, %5) : (memref<?xindex>, index) -> index
%8 = "arith.addi"(%7, %1) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
"memref.store"(%8, %arg4, %5) : (index, memref<?xindex>, index) -> ()
%9 = "arith.addi"(%arg6, %1) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
"scf.yield"(%9) : (index) -> ()
}) : (index) -> index
"memref.store"(%1, %arg4, %5) : (index, memref<?xindex>, index) -> ()
"scf.forall.in_parallel"() ({
^bb0:
}) : () -> ()
}) : () -> ()
"loom.spatial_yield"() <{operandSegmentSizes = array<i32: 0, 0>}> : () -> ()
}) : (index, memref<?xindex>) -> ()
"dataflow.thread.yield"() : () -> ()
}) : () -> ()
}) : () -> ()