Back to PBT run
input.mlir
dataflow.graph private @pair_0(%start: none, %lb: i64, %ub: i64, %step: i64,
%a: memref<16xi32>, %b: memref<16xi32>) -> ()
attributes {input_segments = array<i32: 3, 0, 2>,
result_segments = array<i32: 0, 0, 0>} {
scf.for %i = %lb to %ub step %step : i64 {
%scaled = arith.muli %i, %step : i64
%idx = arith.index_cast %scaled : i64 to index
%ploaded = memref.load %b[%idx] : memref<16xi32>
memref.store %ploaded, %a[%idx] : memref<16xi32>
}
dataflow.graph.return %start : none
}
dataflow.graph private @wo_1(%start: none, %lb: i64, %ub: i64, %step: i64, %value: f32,
%a: memref<?xf32>) -> ()
attributes {input_segments = array<i32: 4, 0, 1>,
result_segments = array<i32: 0, 0, 0>} {
scf.for %i = %lb to %ub step %step : i64 {
%shifted = arith.addi %i, %lb : i64
%idx = arith.index_cast %shifted : i64 to index
memref.store %value, %a[%idx] : memref<?xf32>
}
dataflow.graph.return %start : none
}