Back to PBT run
output.generic.mlir
"builtin.module"() ({
"func.func"() <{function_type = (i32) -> i32, sym_name = "helper_double"}> ({
^bb0(%arg10: i32):
%10 = "arith.addi"(%arg10, %arg10) <{overflowFlags = #arith.overflow<none>}> : (i32, i32) -> i32
"func.return"(%10) : (i32) -> ()
}) : () -> ()
"llvm.func"() <{CConv = #llvm.cconv<ccc>, function_type = !llvm.func<i32 (i32)>, linkage = #llvm.linkage<external>, sym_name = "extern_scale", unnamed_addr = 0 : i64, visibility_ = 0 : i64}> ({
}) : () -> ()
"func.func"() <{function_type = (memref<4xi32>, i32) -> (), sym_name = "host_container"}> ({
^bb0(%arg7: memref<4xi32>, %arg8: i32):
%7 = "arith.constant"() <{value = 0 : index}> : () -> index
%8 = "arith.constant"() <{value = 4 : index}> : () -> index
%9 = "arith.constant"() <{value = 1 : index}> : () -> index
"scf.for"(%7, %8, %9) ({
^bb0(%arg9: index):
"memref.store"(%arg8, %arg7, %arg9) : (i32, memref<4xi32>, index) -> ()
"scf.yield"() : () -> ()
}) : (index, index, index) -> ()
"func.return"() : () -> ()
}) : () -> ()
"dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (memref<4xi32>, i32, i1) -> (), sym_name = "thread_0", sym_visibility = "private"}> ({
^bb0(%arg3: memref<4xi32>, %arg4: i32, %arg5: i1, %arg6: none):
%2 = "arith.constant"() <{value = 0 : index}> : () -> index
%3 = "arith.constant"() <{value = 2 : index}> : () -> index
%4 = "arith.constant"() <{value = 1 : index}> : () -> index
%5 = "scf.if"(%arg5) ({
%6 = "dataflow.graph.launch"(%arg6, %arg4, %arg3) <{callee = @graph_0, operandSegmentSizes = array<i32: 1, 1, 0, 1, 0>, resultSegmentSizes = array<i32: 0, 0, 1>, source_maps = []}> : (none, i32, memref<4xi32>) -> none
"scf.yield"(%6) : (none) -> ()
}, {
"scf.yield"(%arg6) : (none) -> ()
}) : (i1) -> none
"dataflow.thread.yield"(%5) : (none) -> ()
}) : () -> ()
"dataflow.graph"() <{arg_attrs = [{}, {llvm.noalias}], function_type = (i32, memref<4xi32>) -> (), input_segments = array<i32: 1, 0, 1>, result_segments = array<i32: 0, 0, 0>, sym_name = "graph_0", sym_visibility = "private"}> ({
^bb0(%arg0: none, %arg1: i32, %arg2: memref<4xi32>):
%0 = "dataflow.constant"(%arg0) <{const_value = 0 : index}> : (none) -> index
%1 = "dataflow.store"(%arg2, %0, %arg1, %arg0) : (memref<4xi32>, index, i32, none) -> none
"dataflow.graph.return"(%1) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
}) : () -> ()
}) : () -> ()