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