Back to PBT run

input.generic.mlir

"builtin.module"() ({
  "dataflow.graph"() <{function_type = (i64, i64, i64, f32, memref<?xf32>) -> (), input_segments = array<i32: 4, 0, 1>, result_segments = array<i32: 0, 0, 0>, sym_name = "wo_0", sym_visibility = "private"}> ({
  ^bb0(%arg7: none, %arg8: i64, %arg9: i64, %arg10: i64, %arg11: f32, %arg12: memref<?xf32>):
    "scf.for"(%arg8, %arg9, %arg10) ({
    ^bb0(%arg13: i64):
      %2 = "arith.addi"(%arg13, %arg8) <{overflowFlags = #arith.overflow<none>}> : (i64, i64) -> i64
      %3 = "arith.index_cast"(%2) : (i64) -> index
      "memref.store"(%arg11, %arg12, %3) : (f32, memref<?xf32>, 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, i32, memref<?xi32>) -> (), input_segments = array<i32: 4, 0, 1>, result_segments = array<i32: 0, 0, 0>, sym_name = "wo_1", sym_visibility = "private"}> ({
  ^bb0(%arg0: none, %arg1: i64, %arg2: i64, %arg3: i64, %arg4: i32, %arg5: memref<?xi32>):
    "scf.for"(%arg1, %arg2, %arg3) ({
    ^bb0(%arg6: i64):
      %0 = "arith.muli"(%arg6, %arg3) <{overflowFlags = #arith.overflow<none>}> : (i64, i64) -> i64
      %1 = "arith.index_cast"(%0) : (i64) -> index
      "memref.store"(%arg4, %arg5, %1) : (i32, memref<?xi32>, index) -> ()
      "scf.yield"() : () -> ()
    }) : (i64, i64, i64) -> ()
    "dataflow.graph.return"(%arg0) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
  }) : () -> ()
}) : () -> ()