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(%arg10: memref<4xi32>, %arg11: i32, %arg12: i1, %arg13: index, %arg14: none):
    %7 = "arith.constant"() <{value = 0 : index}> : () -> index
    %8 = "arith.constant"() <{value = 1 : index}> : () -> index
    %9 = "scf.for"(%7, %arg13, %8, %arg14) ({
    ^bb0(%arg15: index, %arg16: none):
      %10 = "scf.if"(%arg12) ({
        %11:2 = "dataflow.graph.launch"(%arg16, %arg11) <{callee = @graph_0_0, operandSegmentSizes = array<i32: 1, 1, 0, 0, 0>, resultSegmentSizes = array<i32: 1, 0, 1>, source_maps = []}> : (none, i32) -> (i32, none)
        "scf.yield"(%11#1) : (none) -> ()
      }, {
        "scf.yield"(%arg16) : (none) -> ()
      }) : (i1) -> 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_1", sym_visibility = "private"}> ({
  ^bb0(%arg3: memref<4xi32>, %arg4: i32, %arg5: i1, %arg6: index, %arg7: none):
    %2 = "arith.constant"() <{value = 0 : index}> : () -> index
    %3 = "arith.constant"() <{value = 1 : index}> : () -> index
    %4 = "scf.for"(%2, %arg6, %3, %arg7) ({
    ^bb0(%arg8: index, %arg9: none):
      %5 = "scf.if"(%arg5) ({
        %6 = "dataflow.graph.launch"(%arg9) <{callee = @graph_1_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"(%arg9) : (none) -> ()
      }) : (i1) -> none
      "scf.yield"(%5) : (none) -> ()
    }) : (index, index, index, none) -> none
    "dataflow.thread.yield"(%4) : (none) -> ()
  }) : () -> ()
  "dataflow.graph"() <{function_type = (i32) -> i32, input_segments = array<i32: 1, 0, 0>, result_segments = array<i32: 1, 0, 0>, sym_name = "graph_0_0", sym_visibility = "private"}> ({
  ^bb0(%arg1: none, %arg2: i32):
    %0 = "arith.addi"(%arg2, %arg2) <{overflowFlags = #arith.overflow<none>}> : (i32, i32) -> i32
    %1:2 = "dataflow.sync"(%arg1, %0) : (none, i32) -> (none, i32)
    "dataflow.graph.return"(%1#1, %1#0) <{operandSegmentSizes = array<i32: 1, 0, 0, 1>}> : (i32, none) -> ()
  }) : () -> ()
  "dataflow.graph"() <{function_type = () -> (), input_segments = array<i32: 0, 0, 0>, result_segments = array<i32: 0, 0, 0>, sym_name = "graph_1_0", sym_visibility = "private"}> ({
  ^bb0(%arg0: none):
    "dataflow.graph.return"(%arg0) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
  }) : () -> ()
}) : () -> ()