use xir::{Block, Context, Operation, Span, Type};
pub fn r#if<'a>(context: &'a Context<'a>, types: &[Type<'a>], span: Span<'a>) -> Operation<'a> {
Operation::new(context, "scf.if", &[], types, [], span)
}
pub fn r#while<'a>(
context: &'a Context<'a>,
types: &[Type<'a>],
before: Block<'a>,
after: Block<'a>,
span: Span<'a>,
) -> Operation<'a> {
Operation::new(context, "scf.while", &[], types, [before, after], span)
}
pub fn r#yield<'a>(context: &'a Context<'a>, types: &[Type<'a>], span: Span<'a>) -> Operation<'a> {
Operation::new(context, "scf.while", &[], types, [], span)
}