Back to PBT run

output.generic.mlir

"builtin.module"() ({
  "llvm.func"() <{CConv = #llvm.cconv<ccc>, function_type = !llvm.func<void (i64)>, linkage = #llvm.linkage<external>, sym_name = "imported_kernel", unnamed_addr = 0 : i64, visibility_ = 0 : i64}> ({
  }) : () -> ()
  "dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (memref<8xindex>, memref<8xindex>, memref<4x4xindex>, index) -> (), sym_name = "t0", sym_visibility = "private"}> ({
  ^bb0(%arg13: memref<8xindex>, %arg14: memref<8xindex>, %arg15: memref<4x4xindex>, %arg16: index, %arg17: none):
    %24 = "arith.constant"() <{value = 0 : index}> : () -> index
    %25 = "arith.constant"() <{value = 3 : index}> : () -> index
    "memref.store"(%25, %arg13, %24) : (index, memref<8xindex>, index) -> ()
    %26 = "dataflow.graph.launch"(%arg17, %arg16, %arg14, %arg15) <{callee = @g_t0_0, operandSegmentSizes = array<i32: 1, 1, 0, 2, 0>, resultSegmentSizes = array<i32: 0, 0, 1>, source_maps = []}> : (none, index, memref<8xindex>, memref<4x4xindex>) -> none
    "dataflow.thread.yield"(%26) : (none) -> ()
  }) : () -> ()
  "dataflow.thread"() <{domain = #dataflow.thread_domain<dense>, function_type = (memref<8xindex>, memref<8xindex>, memref<4x4xindex>, index) -> (), sym_name = "t1", sym_visibility = "private"}> ({
  ^bb0(%arg8: memref<8xindex>, %arg9: memref<8xindex>, %arg10: memref<4x4xindex>, %arg11: index, %arg12: none):
    %23 = "dataflow.graph.launch"(%arg12, %arg11, %arg9, %arg10) <{callee = @g_t1_0, operandSegmentSizes = array<i32: 1, 1, 0, 2, 0>, resultSegmentSizes = array<i32: 0, 0, 1>, source_maps = []}> : (none, index, memref<8xindex>, memref<4x4xindex>) -> none
    "dataflow.thread.yield"(%23) : (none) -> ()
  }) : () -> ()
  "dataflow.graph"() <{function_type = (index, memref<8xindex>, memref<4x4xindex>) -> (), input_segments = array<i32: 1, 0, 2>, result_segments = array<i32: 0, 0, 0>, sym_name = "g_t0_0", sym_visibility = "private"}> ({
  ^bb0(%arg4: none, %arg5: index, %arg6: memref<8xindex>, %arg7: memref<4x4xindex>):
    %3 = "dataflow.constant"(%arg4) <{const_value = 7 : index}> : (none) -> index
    %4 = "dataflow.constant"(%arg4) <{const_value = 0 : index}> : (none) -> index
    %5 = "dataflow.constant"(%arg4) <{const_value = 1 : index}> : (none) -> index
    %6 = "dataflow.constant"(%arg4) <{const_value = 4 : index}> : (none) -> index
    %7 = "arith.muli"(%4, %6) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
    %8 = "arith.addi"(%7, %4) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
    %9 = "dataflow.store"(%arg7, %8, %3, %arg4) : (memref<4x4xindex>, index, index, none) -> none
    %10 = "dataflow.constant"(%arg4) <{const_value = 4 : index}> : (none) -> index
    %11 = "arith.muli"(%4, %10) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
    %12 = "arith.addi"(%11, %5) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
    %13 = "dataflow.store"(%arg7, %12, %3, %arg4) : (memref<4x4xindex>, index, index, none) -> none
    %14 = "dataflow.constant"(%arg4) <{const_value = 4 : index}> : (none) -> index
    %15 = "arith.muli"(%5, %14) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
    %16 = "arith.addi"(%15, %4) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
    %17 = "dataflow.store"(%arg7, %16, %3, %arg4) : (memref<4x4xindex>, index, index, none) -> none
    %18 = "dataflow.constant"(%arg4) <{const_value = 4 : index}> : (none) -> index
    %19 = "arith.muli"(%5, %18) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
    %20 = "arith.addi"(%19, %5) <{overflowFlags = #arith.overflow<none>}> : (index, index) -> index
    %21 = "dataflow.store"(%arg7, %20, %3, %arg4) : (memref<4x4xindex>, index, index, none) -> none
    %22:4 = "dataflow.sync"(%9, %13, %17, %21) : (none, none, none, none) -> (none, none, none, none)
    "dataflow.graph.return"(%22#0) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
  }) : () -> ()
  "dataflow.graph"() <{function_type = (index, memref<8xindex>, memref<4x4xindex>) -> (), input_segments = array<i32: 1, 0, 2>, result_segments = array<i32: 0, 0, 0>, sym_name = "g_t1_0", sym_visibility = "private"}> ({
  ^bb0(%arg0: none, %arg1: index, %arg2: memref<8xindex>, %arg3: memref<4x4xindex>):
    %0 = "dataflow.constant"(%arg0) <{const_value = 7 : index}> : (none) -> index
    %1 = "dataflow.constant"(%arg0) <{const_value = 0 : index}> : (none) -> index
    %2 = "dataflow.store"(%arg2, %1, %0, %arg0) : (memref<8xindex>, index, index, none) -> none
    "dataflow.graph.return"(%2) <{operandSegmentSizes = array<i32: 0, 0, 0, 1>}> : (none) -> ()
  }) : () -> ()
}) : () -> ()