Back to PBT run
input.generic.mlir
"builtin.module"() ({
"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_0", sym_visibility = "private"}> ({
^bb0(%arg14: none, %arg15: i64, %arg16: i64, %arg17: i64, %arg18: index, %arg19: i1, %arg20: i32, %arg21: memref<?xi32>):
"scf.for"(%arg15, %arg16, %arg17) ({
^bb0(%arg22: i64):
%5 = "arith.index_cast"(%arg22) : (i64) -> index
"memref.store"(%arg20, %arg21, %5) : (i32, memref<?xi32>, index) -> ()
"scf.yield"() : () -> ()
}) : (i64, i64, i64) -> ()
%4 = "memref.load"(%arg21, %arg18) : (memref<?xi32>, index) -> i32
"dataflow.graph.return"(%arg21, %arg14) <{operandSegmentSizes = array<i32: 0, 0, 1, 1>}> : (memref<?xi32>, none) -> ()
}) : () -> ()
"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_1", sym_visibility = "private"}> ({
^bb0(%arg7: none, %arg8: i64, %arg9: i64, %arg10: i64, %arg11: index, %arg12: i1, %arg13: i32):
%2 = "memref.alloc"() <{operandSegmentSizes = array<i32: 0, 0>}> : () -> memref<4xi32>
"memref.store"(%arg13, %2, %arg11) : (i32, memref<4xi32>, index) -> ()
%3 = "memref.load"(%2, %arg11) : (memref<4xi32>, index) -> i32
"dataflow.graph.return"(%2, %arg7) <{operandSegmentSizes = array<i32: 0, 0, 1, 1>}> : (memref<4xi32>, none) -> ()
}) : () -> ()
"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_2", sym_visibility = "private"}> ({
^bb0(%arg0: none, %arg1: i64, %arg2: i64, %arg3: i64, %arg4: index, %arg5: i1, %arg6: i32):
%0 = "memref.alloc"() <{operandSegmentSizes = array<i32: 0, 0>}> : () -> memref<4xi32>
"memref.store"(%arg6, %0, %arg4) : (i32, memref<4xi32>, index) -> ()
%1 = "memref.load"(%0, %arg4) : (memref<4xi32>, index) -> i32
"dataflow.graph.return"(%0, %arg0) <{operandSegmentSizes = array<i32: 0, 0, 1, 1>}> : (memref<4xi32>, none) -> ()
}) : () -> ()
}) : () -> ()