It would be nice to be able to add scf.if statements via the IR builder.
I think something like this would be useful:
with irb.if(bool_var) as if_vars:
with if_vars.true as true_branch:
true_branch.yield_vars(c1, c2)
with if_vars.false false_branch:
false_branch.yield_vars(c3, c4)
irb.graphblas.print(if_vars.returned_variable[0])
It would be nice to be able to add
scf.if
statements via the IR builder.I think something like this would be useful: