~ecs/hare-qbe

84498d4d4ff2e2e67683c70bdcbe5229b2200072 — Evan Johnston 2 months ago cf27d02 master
add unparse branch for halt and blit
1 files changed, 10 insertions(+), 0 deletions(-)

M qbe/unparse.ha
M qbe/unparse.ha => qbe/unparse.ha +10 -0
@@ 209,6 209,16 @@ case let c: call =>
	unparse_call(out, c)?;
case let d: dbgloc =>
	fmt::fprintfln(out, "\tdbgloc {}, {}", d.0, d.1)?;
case let b: blit =>
	fmt::fprint(out, "\tblit ")?;
	unparse_val(out, b.src)?;
	fmt::fprint(out, ", ")?;
	unparse_val(out, b.dst)?;
	fmt::fprint(out, ", ")?;
	unparse_val(out, b.sz)?;
	fmt::fprint(out, "\n")?;
case let b: hlt =>
	fmt::fprintln(out, "\thlt")?;
};

fn unparse_jump(out: io::handle, j: jump) (io::error | void) = match (j) {