Back to PBT run
input.mlir
module {
dataflow.thread private @thread_0 domain(#dataflow.thread_domain<dense>)(%target: memref<4xi32>, %value: i32, %enabled: i1, %limit: index) ctrl (%start: none) {
%c_zero_0 = arith.constant 0 : index
%c_one_0 = arith.constant 1 : index
scf.for %iv_0_0 = %c_zero_0 to %limit step %c_one_0 {
"loom.spatial_region"()
<{operandSegmentSizes = array<i32: 0, 0, 0, 0>,
resultSegmentSizes = array<i32: 0, 0>}> ({
^bb_entry:
"loom.spatial_yield"()
<{operandSegmentSizes = array<i32: 0, 0>}> : () -> ()
}) {graph_name = "graph_0_0", source_maps = []} : () -> ()
}
dataflow.thread.yield
}
dataflow.thread private @thread_1 domain(#dataflow.thread_domain<dense>)(%target: memref<4xi32>, %value: i32, %enabled: i1, %limit: index) ctrl (%start: none) {
%c_zero_1 = arith.constant 0 : index
%c_one_1 = arith.constant 1 : index
scf.for %iv_1_0 = %c_zero_1 to %limit step %c_one_1 {
"loom.spatial_region"(%value, %target)
<{operandSegmentSizes = array<i32: 1, 0, 1, 0>,
resultSegmentSizes = array<i32: 0, 0>}> ({
^bb_entry(%payload_1_0: i32, %memory_1_0: memref<4xi32>):
%slot_1_0 = arith.constant 0 : index
memref.store %payload_1_0, %memory_1_0[%slot_1_0] : memref<4xi32>
"loom.spatial_yield"()
<{operandSegmentSizes = array<i32: 0, 0>}> : () -> ()
}) {graph_name = "graph_1_0", source_maps = []} : (i32, memref<4xi32>) -> ()
}
dataflow.thread.yield
}
dataflow.thread private @thread_2 domain(#dataflow.thread_domain<dense>)(%target: memref<4xi32>, %value: i32, %enabled: i1, %limit: index) ctrl (%start: none) {
%c_zero_2 = arith.constant 0 : index
%c_one_2 = arith.constant 1 : index
scf.for %iv_2_0 = %c_zero_2 to %limit step %c_one_2 {
scf.if %enabled {
"loom.spatial_region"()
<{operandSegmentSizes = array<i32: 0, 0, 0, 0>,
resultSegmentSizes = array<i32: 0, 0>}> ({
^bb_entry:
"loom.spatial_yield"()
<{operandSegmentSizes = array<i32: 0, 0>}> : () -> ()
}) {graph_name = "graph_2_0", source_maps = []} : () -> ()
}
}
dataflow.thread.yield
}
}