Back to PBT run
output.generic.mlir
#loop_annotation = #llvm.loop_annotation<mustProgress = true>
"builtin.module"() ({
"llvm.func"() <{CConv = #llvm.cconv<ccc>, function_type = !llvm.func<i32 (i32)>, linkage = #llvm.linkage<external>, sym_name = "counted_cycle_0", unnamed_addr = 0 : i64, visibility_ = 0 : i64}> ({
^bb0(%arg4: i32):
%5 = "llvm.mlir.undef"() : () -> i32
%6 = "arith.constant"() <{value = 1 : i32}> : () -> i32
%7 = "arith.constant"() <{value = 0 : i32}> : () -> i32
%8 = "arith.constant"() <{value = 0 : i32}> : () -> i32
%9 = "arith.constant"() <{value = 4 : i32}> : () -> i32
%10:2 = "scf.while"(%8, %5) ({
^bb0(%arg7: i32, %arg8: i32):
%11 = "arith.cmpi"(%arg7, %arg4) <{predicate = 0 : i64}> : (i32, i32) -> i1
%12:3 = "scf.if"(%11) ({
"scf.yield"(%5, %6, %7) : (i32, i32, i32) -> ()
}, {
%14 = "arith.addi"(%arg7, %9) <{overflowFlags = #arith.overflow<none>}> : (i32, i32) -> i32
"scf.yield"(%14, %7, %6) : (i32, i32, i32) -> ()
}) : (i1) -> (i32, i32, i32)
%13 = "arith.trunci"(%12#2) <{overflowFlags = #arith.overflow<none>}> : (i32) -> i1
"scf.condition"(%13, %12#0, %arg7) : (i1, i32, i32) -> ()
}, {
^bb0(%arg5: i32, %arg6: i32):
"scf.yield"(%arg5, %arg6) : (i32, i32) -> ()
}) {llvm.loop_annotation = #loop_annotation} : (i32, i32) -> (i32, i32)
"llvm.return"(%10#1) : (i32) -> ()
}) : () -> ()
"llvm.func"() <{CConv = #llvm.cconv<ccc>, function_type = !llvm.func<i32 (i1, i1, i32, i32)>, linkage = #llvm.linkage<external>, sym_name = "sequential_diamonds_1", unnamed_addr = 0 : i64, visibility_ = 0 : i64}> ({
^bb0(%arg0: i1, %arg1: i1, %arg2: i32, %arg3: i32):
%0 = "arith.constant"() <{value = 0 : i32}> : () -> i32
%1 = "arith.constant"() <{value = 3 : i32}> : () -> i32
%2 = "scf.if"(%arg0) ({
"scf.yield"(%arg2) : (i32) -> ()
}, {
"scf.yield"(%arg3) : (i32) -> ()
}) : (i1) -> i32
%3 = "scf.if"(%arg1) ({
%4 = "arith.addi"(%2, %1) <{overflowFlags = #arith.overflow<none>}> : (i32, i32) -> i32
"scf.yield"(%4) : (i32) -> ()
}, {
"scf.yield"(%2) : (i32) -> ()
}) : (i1) -> i32
"llvm.return"(%3) : (i32) -> ()
}) : () -> ()
}) : () -> ()