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