Back to PBT run

input.generic.mlir

"builtin.module"() ({
  "dataflow.graph"() <{function_type = (i64, i64, i64, memref<16xi32>, memref<16xi32>) -> (), input_segments = array<i32: 3, 0, 2>, result_segments = array<i32: 0, 0, 0>, sym_name = "pair_0", sym_visibility = "private"}> ({
  ^bb0(%arg14: none, %arg15: i64, %arg16: i64, %arg17: i64, %arg18: memref<16xi32>, %arg19: memref<16xi32>):
    "scf.for"(%arg15, %arg16, %arg17) ({
    ^bb0(%arg20: i64):
      %5 = "arith.addi"(%arg20, %arg15) <{overflowFlags = #arith.overflow<none>}> : (i64, i64) -> i64
      %6 = "arith.index_cast"(%5) : (i64) -> index
      %7 = "memref.load"(%arg19, %6) : (memref<16xi32>, index) -> i32
      "memref.store"(%7, %arg18, %6) : (i32, memref<16xi32>, index) -> ()
      "scf.yield"() : () -> ()
    }) : (i64, i64, i64) -> ()
    "dataflow.graph.return"(%arg14) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
  }) : () -> ()
  "dataflow.graph"() <{function_type = (i64, i64, i64, memref<?xi32>, memref<?xi32>) -> (), input_segments = array<i32: 3, 0, 2>, result_segments = array<i32: 0, 0, 0>, sym_name = "pair_1", sym_visibility = "private"}> ({
  ^bb0(%arg7: none, %arg8: i64, %arg9: i64, %arg10: i64, %arg11: memref<?xi32>, %arg12: memref<?xi32>):
    "scf.for"(%arg8, %arg9, %arg10) ({
    ^bb0(%arg13: i64):
      %3 = "arith.index_cast"(%arg13) : (i64) -> index
      %4 = "memref.load"(%arg12, %3) : (memref<?xi32>, index) -> i32
      "memref.store"(%4, %arg11, %3) : (i32, memref<?xi32>, index) -> ()
      "scf.yield"() : () -> ()
    }) : (i64, i64, i64) -> ()
    "dataflow.graph.return"(%arg7) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
  }) : () -> ()
  "dataflow.graph"() <{function_type = (i64, i64, i64, memref<16xi32>, memref<16xi32>) -> (), input_segments = array<i32: 3, 0, 2>, result_segments = array<i32: 0, 0, 0>, sym_name = "pair_2", sym_visibility = "private"}> ({
  ^bb0(%arg0: none, %arg1: i64, %arg2: i64, %arg3: i64, %arg4: memref<16xi32>, %arg5: memref<16xi32>):
    "scf.for"(%arg1, %arg2, %arg3) ({
    ^bb0(%arg6: i64):
      %0 = "arith.addi"(%arg6, %arg1) <{overflowFlags = #arith.overflow<none>}> : (i64, i64) -> i64
      %1 = "arith.index_cast"(%0) : (i64) -> index
      %2 = "memref.load"(%arg5, %1) : (memref<16xi32>, index) -> i32
      "memref.store"(%2, %arg4, %1) : (i32, memref<16xi32>, index) -> ()
      "scf.yield"() : () -> ()
    }) : (i64, i64, i64) -> ()
    "dataflow.graph.return"(%arg0) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
  }) : () -> ()
}) : () -> ()