Back to PBT run
input.generic.mlir
"builtin.module"() ({
"func.func"() <{function_type = (index) -> index, sym_name = "native_helper"}> ({
^bb0(%arg22: index):
"func.return"(%arg22) : (index) -> ()
}) : () -> ()
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (memref<8xindex>, memref<8xindex>, memref<4x4xindex>, index) -> (), sym_name = "t0", sym_visibility = "private"}> ({
^bb0(%arg12: memref<8xindex>, %arg13: memref<8xindex>, %arg14: memref<4x4xindex>, %arg15: index, %arg16: none):
"loom.spatial_region"(%arg15, %arg13, %arg14) <{graph_name = "g_t0_0", operandSegmentSizes = array<i32: 1, 0, 2, 0>, resultSegmentSizes = array<i32: 0, 0>, source_maps = []}> ({
^bb0(%arg17: index, %arg18: memref<8xindex>, %arg19: memref<4x4xindex>):
%7 = "arith.constant"() <{value = 0 : index}> : () -> index
%8 = "arith.constant"() <{value = 1 : index}> : () -> index
%9 = "arith.constant"() <{value = 4 : index}> : () -> index
%10 = "arith.constant"() <{value = 7 : index}> : () -> index
"scf.parallel"(%7, %9, %8) <{operandSegmentSizes = array<i32: 1, 1, 1, 0>}> ({
^bb0(%arg20: index):
"scf.parallel"(%7, %9, %8) <{operandSegmentSizes = array<i32: 1, 1, 1, 0>}> ({
^bb0(%arg21: index):
"memref.store"(%10, %arg19, %arg20, %arg21) : (index, memref<4x4xindex>, index, index) -> ()
"scf.reduce"() : () -> ()
}) : (index, index, index) -> ()
"scf.reduce"() : () -> ()
}) : (index, index, index) -> ()
"loom.spatial_yield"() <{operandSegmentSizes = array<i32: 0, 0>}> : () -> ()
}) : (index, memref<8xindex>, memref<4x4xindex>) -> ()
"dataflow.thread.yield"() : () -> ()
}) : () -> ()
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (memref<8xindex>, memref<8xindex>, memref<4x4xindex>, index) -> (), sym_name = "t1", sym_visibility = "private"}> ({
^bb0(%arg0: memref<8xindex>, %arg1: memref<8xindex>, %arg2: memref<4x4xindex>, %arg3: index, %arg4: none):
"loom.spatial_region"(%arg3, %arg1, %arg2) <{graph_name = "g_t1_0", operandSegmentSizes = array<i32: 1, 0, 2, 0>, resultSegmentSizes = array<i32: 0, 0>, source_maps = []}> ({
^bb0(%arg5: index, %arg6: memref<8xindex>, %arg7: memref<4x4xindex>):
%0 = "arith.constant"() <{value = 0 : index}> : () -> index
%1 = "arith.constant"() <{value = 1 : index}> : () -> index
%2 = "arith.constant"() <{value = 4 : index}> : () -> index
%3 = "arith.constant"() <{value = 7 : index}> : () -> index
"scf.for"(%0, %arg5, %1) ({
^bb0(%arg8: index):
"scf.forall"() <{operandSegmentSizes = array<i32: 0, 0, 0, 0>, staticLowerBound = array<i64: 0>, staticStep = array<i64: 1>, staticUpperBound = array<i64: 4>}> ({
^bb0(%arg9: index):
%4 = "scf.while"(%0) ({
^bb0(%arg11: index):
%6 = "arith.cmpi"(%arg11, %arg5) <{predicate = 2 : i64}> : (index, index) -> i1
"scf.condition"(%6, %arg11) : (i1, index) -> ()
}, {
^bb0(%arg10: index):
%5 = "arith.addi"(%arg10, %1) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
"scf.yield"(%5) : (index) -> ()
}) : (index) -> index
"memref.store"(%4, %arg6, %arg9) : (index, memref<8xindex>, index) -> ()
"scf.forall.in_parallel"() ({
^bb0:
}) : () -> ()
}) : () -> ()
"scf.yield"() : () -> ()
}) : (index, index, index) -> ()
"loom.spatial_yield"() <{operandSegmentSizes = array<i32: 0, 0>}> : () -> ()
}) : (index, memref<8xindex>, memref<4x4xindex>) -> ()
"dataflow.thread.yield"() : () -> ()
}) : () -> ()
}) : () -> ()