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.if %enabled {
    "loom.spatial_region"(%value, %target)
        <{operandSegmentSizes = array<i32: 1, 0, 1, 0>,
          resultSegmentSizes = array<i32: 0, 0>}> ({
      ^bb_entry(%payload_0_0: i32, %memory_0_0: memref<4xi32>):
        %slot_0_0 = arith.constant 0 : index
        memref.store %payload_0_0, %memory_0_0[%slot_0_0] : memref<4xi32>
        "loom.spatial_yield"()
            <{operandSegmentSizes = array<i32: 0, 0>}> : () -> ()
    }) {graph_name = "graph_0_0", source_maps = []} : (i32, memref<4xi32>) -> ()
  }
  scf.for %iv_0_1 = %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_1", source_maps = []} : () -> ()
  }
  dataflow.thread.yield
}
}