Back to PBT run

output.generic.mlir

"builtin.module"() ({
  "dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (memref<4xi32>, i32, i1, index) -> (), sym_name = "thread_0", sym_visibility = "private"}> ({
  ^bb0(%arg19: memref<4xi32>, %arg20: i32, %arg21: i1, %arg22: index, %arg23: none):
    %11 = "arith.constant"() <{value = 0 : index}> : () -> index
    %12 = "arith.constant"() <{value = 1 : index}> : () -> index
    %13 = "scf.for"(%11, %arg22, %12, %arg23) ({
    ^bb0(%arg24: index, %arg25: none):
      %14 = "dataflow.graph.launch"(%arg25) <{callee = @graph_0_0, operandSegmentSizes = array<i32: 1, 0, 0, 0, 0>, resultSegmentSizes = array<i32: 0, 0, 1>, source_maps = []}> : (none) -> none
      "scf.yield"(%14) : (none) -> ()
    }) : (index, index, index, none) -> none
    "dataflow.thread.yield"(%13) : (none) -> ()
  }) : () -> ()
  "dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (memref<4xi32>, i32, i1, index) -> (), sym_name = "thread_1", sym_visibility = "private"}> ({
  ^bb0(%arg12: memref<4xi32>, %arg13: i32, %arg14: i1, %arg15: index, %arg16: none):
    %7 = "arith.constant"() <{value = 0 : index}> : () -> index
    %8 = "arith.constant"() <{value = 1 : index}> : () -> index
    %9 = "scf.for"(%7, %arg15, %8, %arg16) ({
    ^bb0(%arg17: index, %arg18: none):
      %10 = "dataflow.graph.launch"(%arg18, %arg13, %arg12) <{callee = @graph_1_0, operandSegmentSizes = array<i32: 1, 1, 0, 1, 0>, resultSegmentSizes = array<i32: 0, 0, 1>, source_maps = []}> : (none, i32, memref<4xi32>) -> none
      "scf.yield"(%10) : (none) -> ()
    }) : (index, index, index, none) -> none
    "dataflow.thread.yield"(%9) : (none) -> ()
  }) : () -> ()
  "dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (memref<4xi32>, i32, i1, index) -> (), sym_name = "thread_2", sym_visibility = "private"}> ({
  ^bb0(%arg5: memref<4xi32>, %arg6: i32, %arg7: i1, %arg8: index, %arg9: none):
    %2 = "arith.constant"() <{value = 0 : index}> : () -> index
    %3 = "arith.constant"() <{value = 1 : index}> : () -> index
    %4 = "scf.for"(%2, %arg8, %3, %arg9) ({
    ^bb0(%arg10: index, %arg11: none):
      %5 = "scf.if"(%arg7) ({
        %6 = "dataflow.graph.launch"(%arg11) <{callee = @graph_2_0, operandSegmentSizes = array<i32: 1, 0, 0, 0, 0>, resultSegmentSizes = array<i32: 0, 0, 1>, source_maps = []}> : (none) -> none
        "scf.yield"(%6) : (none) -> ()
      }, {
        "scf.yield"(%arg11) : (none) -> ()
      }) : (i1) -> none
      "scf.yield"(%5) : (none) -> ()
    }) : (index, index, index, none) -> none
    "dataflow.thread.yield"(%4) : (none) -> ()
  }) : () -> ()
  "dataflow.graph"() <{function_type = () -> (), input_segments = array<i32: 0, 0, 0>, result_segments = array<i32: 0, 0, 0>, sym_name = "graph_0_0", sym_visibility = "private"}> ({
  ^bb0(%arg4: none):
    "dataflow.graph.return"(%arg4) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (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_1_0", sym_visibility = "private"}> ({
  ^bb0(%arg1: none, %arg2: i32, %arg3: memref<4xi32>):
    %0 = "dataflow.constant"(%arg1) <{const_value = 0 : index}> : (none) -> index
    %1 = "dataflow.store"(%arg3, %0, %arg2, %arg1) : (memref<4xi32>, index, i32, none) -> none
    "dataflow.graph.return"(%1) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
  }) : () -> ()
  "dataflow.graph"() <{function_type = () -> (), input_segments = array<i32: 0, 0, 0>, result_segments = array<i32: 0, 0, 0>, sym_name = "graph_2_0", sym_visibility = "private"}> ({
  ^bb0(%arg0: none):
    "dataflow.graph.return"(%arg0) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
  }) : () -> ()
}) : () -> ()