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 {
  scf.if %enabled {
    %out_0_0 = "loom.spatial_region"(%value)
        <{operandSegmentSizes = array<i32: 1, 0, 0, 0>,
          resultSegmentSizes = array<i32: 1, 0>}> ({
      ^bb_entry(%lane_0_0: i32):
        %sum_0_0 = arith.addi %lane_0_0, %lane_0_0 : i32
        "loom.spatial_yield"(%sum_0_0)
            <{operandSegmentSizes = array<i32: 1, 0>}> : (i32) -> ()
    }) {graph_name = "graph_0_0", source_maps = []} : (i32) -> i32
  }
  }
  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 {
    %out_1_0 = "loom.spatial_region"(%value)
        <{operandSegmentSizes = array<i32: 1, 0, 0, 0>,
          resultSegmentSizes = array<i32: 1, 0>}> ({
      ^bb_entry(%lane_1_0: i32):
        %sum_1_0 = arith.addi %lane_1_0, %lane_1_0 : i32
        "loom.spatial_yield"(%sum_1_0)
            <{operandSegmentSizes = array<i32: 1, 0>}> : (i32) -> ()
    }) {graph_name = "graph_1_0", source_maps = []} : (i32) -> i32
  }
  scf.for %iv_1_1 = %c_zero_1 to %limit step %c_one_1 {
    "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_1_1", source_maps = []} : () -> ()
  }
  dataflow.thread.yield
}
}