Back to PBT run
input.generic.mlir
#map = affine_map<(d0) -> (d0)>
"builtin.module"() ({
"dataflow.graph"() <{function_type = (index, i1, vector<4xi1>, vector<4xindex>, i32, memref<16xi32>, memref<16xi32>) -> (), input_segments = array<i32: 5, 0, 2>, result_segments = array<i32: 0, 0, 0>, sym_name = "graph_0", sym_visibility = "private"}> ({
^bb0(%arg10: none, %arg11: index, %arg12: i1, %arg13: vector<4xi1>, %arg14: vector<4xindex>, %arg15: i32, %arg16: memref<16xi32>, %arg17: memref<16xi32>):
%11 = "arith.constant"() <{value = 0 : i32}> : () -> i32
%12 = "arith.constant"() <{value = 0 : index}> : () -> index
%13 = "arith.constant"() <{value = 4 : index}> : () -> index
%14 = "arith.constant"() <{value = 1 : index}> : () -> index
"scf.for"(%12, %13, %14) ({
^bb0(%arg20: index):
%25 = "vector.transfer_read"(%arg16, %arg11, %11) <{in_bounds = [true], operandSegmentSizes = array<i32: 1, 1, 1, 0>, permutation_map = #map}> : (memref<16xi32>, index, i32) -> vector<4xi32>
"vector.transfer_write"(%25, %arg16, %arg11) <{in_bounds = [true], operandSegmentSizes = array<i32: 1, 1, 1, 0>, permutation_map = #map}> : (vector<4xi32>, memref<16xi32>, index) -> ()
"scf.yield"() : () -> ()
}) : (index, index, index) -> ()
%15 = "arith.constant"() <{value = 0 : index}> : () -> index
%16 = "arith.constant"() <{value = 4 : index}> : () -> index
%17 = "arith.constant"() <{value = 1 : index}> : () -> index
"scf.for"(%15, %16, %17) ({
^bb0(%arg19: index):
%24 = "vector.transfer_read"(%arg16, %arg11, %11, %arg13) <{in_bounds = [true], operandSegmentSizes = array<i32: 1, 1, 1, 1>, permutation_map = #map}> : (memref<16xi32>, index, i32, vector<4xi1>) -> vector<4xi32>
"vector.transfer_write"(%24, %arg16, %arg11, %arg13) <{in_bounds = [true], operandSegmentSizes = array<i32: 1, 1, 1, 1>, permutation_map = #map}> : (vector<4xi32>, memref<16xi32>, index, vector<4xi1>) -> ()
"scf.yield"() : () -> ()
}) : (index, index, index) -> ()
"memref.store"(%arg15, %arg17, %arg11) : (i32, memref<16xi32>, index) -> ()
%18 = "memref.load"(%arg17, %arg11) : (memref<16xi32>, index) -> i32
%19 = "arith.constant"() <{value = 0 : index}> : () -> index
%20 = "arith.constant"() <{value = 4 : index}> : () -> index
%21 = "arith.constant"() <{value = 1 : index}> : () -> index
"scf.for"(%19, %20, %21) ({
^bb0(%arg18: index):
%23 = "vector.transfer_read"(%arg16, %arg11, %11) <{in_bounds = [true], operandSegmentSizes = array<i32: 1, 1, 1, 0>, permutation_map = #map}> : (memref<16xi32>, index, i32) -> vector<4xi32>
"vector.transfer_write"(%23, %arg17, %arg11) <{in_bounds = [true], operandSegmentSizes = array<i32: 1, 1, 1, 0>, permutation_map = #map}> : (vector<4xi32>, memref<16xi32>, index) -> ()
"scf.yield"() : () -> ()
}) : (index, index, index) -> ()
"memref.store"(%arg15, %arg17, %arg11) : (i32, memref<16xi32>, index) -> ()
%22 = "memref.load"(%arg17, %arg11) : (memref<16xi32>, index) -> i32
"dataflow.graph.return"(%arg10) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
}) : () -> ()
"dataflow.graph"() <{function_type = (index, i1, vector<4xi1>, vector<4xindex>, i32, memref<16xi32>, memref<16xi32>) -> (), input_segments = array<i32: 5, 0, 2>, result_segments = array<i32: 0, 0, 0>, sym_name = "graph_1", sym_visibility = "private"}> ({
^bb0(%arg0: none, %arg1: index, %arg2: i1, %arg3: vector<4xi1>, %arg4: vector<4xindex>, %arg5: i32, %arg6: memref<16xi32>, %arg7: memref<16xi32>):
%0 = "arith.constant"() <{value = 0 : i32}> : () -> i32
%1 = "arith.constant"() <{value = 0 : index}> : () -> index
%2 = "arith.constant"() <{value = 4 : index}> : () -> index
%3 = "arith.constant"() <{value = 1 : index}> : () -> index
"scf.for"(%1, %2, %3) ({
^bb0(%arg9: index):
%10 = "vector.transfer_read"(%arg6, %arg1, %0) <{in_bounds = [true], operandSegmentSizes = array<i32: 1, 1, 1, 0>, permutation_map = #map}> : (memref<16xi32>, index, i32) -> vector<4xi32>
"vector.transfer_write"(%10, %arg6, %arg1) <{in_bounds = [true], operandSegmentSizes = array<i32: 1, 1, 1, 0>, permutation_map = #map}> : (vector<4xi32>, memref<16xi32>, index) -> ()
"scf.yield"() : () -> ()
}) : (index, index, index) -> ()
"memref.store"(%arg5, %arg7, %arg1) : (i32, memref<16xi32>, index) -> ()
%4 = "memref.load"(%arg7, %arg1) : (memref<16xi32>, index) -> i32
%5 = "arith.constant"() <{value = 0 : index}> : () -> index
%6 = "arith.constant"() <{value = 4 : index}> : () -> index
%7 = "arith.constant"() <{value = 1 : index}> : () -> index
"scf.for"(%5, %6, %7) ({
^bb0(%arg8: index):
%9 = "vector.transfer_read"(%arg6, %arg1, %0) <{in_bounds = [true], operandSegmentSizes = array<i32: 1, 1, 1, 0>, permutation_map = #map}> : (memref<16xi32>, index, i32) -> vector<4xi32>
"vector.transfer_write"(%9, %arg6, %arg1) <{in_bounds = [true], operandSegmentSizes = array<i32: 1, 1, 1, 0>, permutation_map = #map}> : (vector<4xi32>, memref<16xi32>, index) -> ()
"scf.yield"() : () -> ()
}) : (index, index, index) -> ()
"memref.store"(%arg5, %arg7, %arg1) : (i32, memref<16xi32>, index) -> ()
%8 = "memref.load"(%arg7, %arg1) : (memref<16xi32>, index) -> i32
"dataflow.graph.return"(%arg0) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
}) : () -> ()
}) : () -> ()