Back to PBT run
input.mlir
dataflow.thread private @thread_0 domain(#dataflow.thread_domain<dense>)(
%limit: index, %memory: memref<?xindex>) ctrl (%ctrl: none) {
"loom.spatial_region"(%limit, %memory)
<{operandSegmentSizes = array<i32: 1, 0, 1, 0>,
resultSegmentSizes = array<i32: 0, 0>}> ({
^bb0(%lim: index, %target: memref<?xindex>):
%zero = arith.constant 0 : index
%one = arith.constant 1 : index
%two = arith.constant 2 : index
%flag = arith.cmpi ult, %zero, %two : index
scf.forall (%iv0) in (2) {
%mx0 = arith.muli %zero, %two : index
%ix0 = arith.addi %mx0, %iv0 : index
%ld1 = memref.load %target[%ix0] : memref<?xindex>
%ad1 = arith.addi %ld1, %one : index
memref.store %ad1, %target[%ix0] : memref<?xindex>
%ld2 = memref.load %target[%ix0] : memref<?xindex>
%ad2 = arith.addi %ld2, %one : index
memref.store %ad2, %target[%ix0] : memref<?xindex>
}
"loom.spatial_yield"()
<{operandSegmentSizes = array<i32: 0, 0>}> : () -> ()
}) {graph_name = "g_thread_0", source_maps = []} :
(index, memref<?xindex>) -> ()
dataflow.thread.yield
}