Back to PBT run

input.generic.mlir

"builtin.module"() ({
  "dataflow.graph"() <{function_type = (i64, i64, i64, index, i1, i32) -> memref<4xi32>, input_segments = array<i32: 6, 0, 0>, result_segments = array<i32: 0, 0, 1>, sym_name = "fresh_export_0", sym_visibility = "private"}> ({
  ^bb0(%arg17: none, %arg18: i64, %arg19: i64, %arg20: i64, %arg21: index, %arg22: i1, %arg23: i32):
    %3 = "memref.alloc"() <{operandSegmentSizes = array<i32: 0, 0>}> : () -> memref<4xi32>
    "memref.store"(%arg23, %3, %arg21) : (i32, memref<4xi32>, index) -> ()
    %4 = "memref.load"(%3, %arg21) : (memref<4xi32>, index) -> i32
    "dataflow.graph.return"(%3, %arg17) <{operandSegmentSizes = array<i32: 0, 0, 1, 1>}> : (memref<4xi32>, none) -> ()
  }) : () -> ()
  "dataflow.graph"() <{function_type = (i64, i64, i64, index, i1, i32, memref<?xi32>) -> memref<?xi32>, input_segments = array<i32: 6, 0, 1>, result_segments = array<i32: 0, 0, 1>, sym_name = "imported_export_1", sym_visibility = "private"}> ({
  ^bb0(%arg9: none, %arg10: i64, %arg11: i64, %arg12: i64, %arg13: index, %arg14: i1, %arg15: i32, %arg16: memref<?xi32>):
    "scf.if"(%arg14) ({
      "memref.store"(%arg15, %arg16, %arg13) : (i32, memref<?xi32>, index) -> ()
      "scf.yield"() : () -> ()
    }, {
    }) : (i1) -> ()
    %2 = "memref.load"(%arg16, %arg13) : (memref<?xi32>, index) -> i32
    "dataflow.graph.return"(%arg16, %arg9) <{operandSegmentSizes = array<i32: 0, 0, 1, 1>}> : (memref<?xi32>, none) -> ()
  }) : () -> ()
  "dataflow.graph"() <{function_type = (i64, i64, i64, index, i1, i32, memref<?xi32>) -> memref<?xi32>, input_segments = array<i32: 6, 0, 1>, result_segments = array<i32: 0, 0, 1>, sym_name = "imported_export_2", sym_visibility = "private"}> ({
  ^bb0(%arg0: none, %arg1: i64, %arg2: i64, %arg3: i64, %arg4: index, %arg5: i1, %arg6: i32, %arg7: memref<?xi32>):
    "scf.for"(%arg1, %arg2, %arg3) ({
    ^bb0(%arg8: i64):
      %1 = "arith.index_cast"(%arg8) : (i64) -> index
      "memref.store"(%arg6, %arg7, %1) : (i32, memref<?xi32>, index) -> ()
      "scf.yield"() : () -> ()
    }) : (i64, i64, i64) -> ()
    %0 = "memref.load"(%arg7, %arg4) : (memref<?xi32>, index) -> i32
    "dataflow.graph.return"(%arg7, %arg0) <{operandSegmentSizes = array<i32: 0, 0, 1, 1>}> : (memref<?xi32>, none) -> ()
  }) : () -> ()
}) : () -> ()