Back to PBT run

input.generic.mlir

"builtin.module"() ({
  "dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (index, memref<?xindex>) -> (), sym_name = "thread_0", sym_visibility = "private"}> ({
  ^bb0(%arg3: index, %arg4: memref<?xindex>, %arg5: none):
    "loom.spatial_region"(%arg3, %arg4) <{graph_name = "g_thread_0", operandSegmentSizes = array<i32: 1, 0, 1, 0>, resultSegmentSizes = array<i32: 0, 0>, source_maps = []}> ({
    ^bb0(%arg6: index, %arg7: memref<?xindex>):
      %2 = "arith.constant"() <{value = 0 : index}> : () -> index
      %3 = "arith.constant"() <{value = 1 : index}> : () -> index
      %4 = "arith.constant"() <{value = 2 : index}> : () -> index
      %5 = "arith.cmpi"(%2, %4) <{predicate = 6 : i64}> : (index, index) -> i1
      "scf.if"(%5) ({
        "scf.parallel"(%2, %4, %3) <{operandSegmentSizes = array<i32: 1, 1, 1, 0>}> ({
        ^bb0(%arg10: index):
          %8 = "arith.muli"(%2, %4) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
          %9 = "arith.addi"(%8, %arg10) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
          "memref.store"(%3, %arg7, %9) : (index, memref<?xindex>, index) -> ()
          "scf.reduce"() : () -> ()
        }) : (index, index, index) -> ()
        "scf.yield"() : () -> ()
      }, {
      }) : (i1) -> ()
      "scf.forall"() <{operandSegmentSizes = array<i32: 0, 0, 0, 0>, staticLowerBound = array<i64: 0>, staticStep = array<i64: 1>, staticUpperBound = array<i64: 2>}> ({
      ^bb0(%arg8: index):
        %6 = "arith.muli"(%2, %4) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
        %7 = "arith.addi"(%6, %arg8) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
        "scf.for"(%2, %4, %3) ({
        ^bb0(%arg9: index):
          "memref.store"(%3, %arg7, %7) : (index, memref<?xindex>, index) -> ()
          "scf.yield"() : () -> ()
        }) : (index, index, index) -> ()
        "memref.store"(%3, %arg7, %7) : (index, memref<?xindex>, index) -> ()
        "scf.forall.in_parallel"() ({
        ^bb0:
        }) : () -> ()
      }) : () -> ()
      "loom.spatial_yield"() <{operandSegmentSizes = array<i32: 0, 0>}> : () -> ()
    }) : (index, memref<?xindex>) -> ()
    "dataflow.thread.yield"() : () -> ()
  }) : () -> ()
  "dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (index, memref<?xindex>) -> (), sym_name = "thread_1", sym_visibility = "private"}> ({
  ^bb0(%arg0: index, %arg1: memref<?xindex>, %arg2: none):
    %0 = "arith.constant"() <{value = 0 : index}> : () -> index
    %1 = "arith.constant"() <{value = 1 : index}> : () -> index
    "memref.store"(%1, %arg1, %0) : (index, memref<?xindex>, index) -> ()
    "dataflow.thread.yield"() : () -> ()
  }) : () -> ()
}) : () -> ()