Back to PBT run
input.generic.mlir
"builtin.module"() ({
"dataflow.graph"() <{function_type = (i64, i64, i64, i64, i32, memref<?xi32>) -> (), input_segments = array<i32: 5, 0, 1>, result_segments = array<i32: 0, 0, 0>, sym_name = "guard_0", sym_visibility = "private"}> ({
^bb0(%arg16: none, %arg17: i64, %arg18: i64, %arg19: i64, %arg20: i64, %arg21: i32, %arg22: memref<?xi32>):
"scf.for"(%arg17, %arg18, %arg19) ({
^bb0(%arg23: i64):
%9 = "arith.index_cast"(%arg23) : (i64) -> index
%10 = "arith.cmpi"(%arg23, %arg20) <{predicate = 2 : i64}> : (i64, i64) -> i1
"scf.if"(%10) ({
"memref.store"(%arg21, %arg22, %9) : (i32, memref<?xi32>, index) -> ()
"scf.yield"() : () -> ()
}, {
}) : (i1) -> ()
"scf.yield"() : () -> ()
}) : (i64, i64, i64) -> ()
"dataflow.graph.return"(%arg16) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
}) : () -> ()
"dataflow.graph"() <{function_type = (i64, i64, i64, i32, memref<128xi32>) -> i32, input_segments = array<i32: 4, 0, 1>, result_segments = array<i32: 1, 0, 0>, sym_name = "acc_1", sym_visibility = "private"}> ({
^bb0(%arg8: none, %arg9: i64, %arg10: i64, %arg11: i64, %arg12: i32, %arg13: memref<128xi32>):
%4 = "scf.for"(%arg9, %arg10, %arg11, %arg12) ({
^bb0(%arg14: i64, %arg15: i32):
%5 = "arith.muli"(%arg14, %arg11) <{overflowFlags = #arith.overflow<none>}> : (i64, i64) -> i64
%6 = "arith.index_cast"(%5) : (i64) -> index
%7 = "memref.load"(%arg13, %6) : (memref<128xi32>, index) -> i32
%8 = "arith.addi"(%arg15, %7) <{overflowFlags = #arith.overflow<none>}> : (i32, i32) -> i32
"memref.store"(%8, %arg13, %6) : (i32, memref<128xi32>, index) -> ()
"scf.yield"(%8) : (i32) -> ()
}) : (i64, i64, i64, i32) -> i32
"dataflow.graph.return"(%4, %arg8) <{operandSegmentSizes = array<i32: 1, 0, 0, 1>}> : (i32, none) -> ()
}) : () -> ()
"dataflow.graph"() <{function_type = (i64, i64, i64, i32, memref<?xi32>) -> i32, input_segments = array<i32: 4, 0, 1>, result_segments = array<i32: 1, 0, 0>, sym_name = "acc_2", sym_visibility = "private"}> ({
^bb0(%arg0: none, %arg1: i64, %arg2: i64, %arg3: i64, %arg4: i32, %arg5: memref<?xi32>):
%0 = "scf.for"(%arg1, %arg2, %arg3, %arg4) ({
^bb0(%arg6: i64, %arg7: i32):
%1 = "arith.index_cast"(%arg6) : (i64) -> index
%2 = "memref.load"(%arg5, %1) : (memref<?xi32>, index) -> i32
%3 = "arith.addi"(%arg7, %2) <{overflowFlags = #arith.overflow<none>}> : (i32, i32) -> i32
"memref.store"(%3, %arg5, %1) : (i32, memref<?xi32>, index) -> ()
"scf.yield"(%3) : (i32) -> ()
}) : (i64, i64, i64, i32) -> i32
"dataflow.graph.return"(%0, %arg0) <{operandSegmentSizes = array<i32: 1, 0, 0, 1>}> : (i32, none) -> ()
}) : () -> ()
}) : () -> ()