~ecs/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[PATCH] add unparse branch for halt and blit

Details
Message ID
<20240507023804.22638-1-evan@d2evs.net>
DKIM signature
pass
Download raw message
Patch: +10 -0
---
 qbe/unparse.ha | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/qbe/unparse.ha b/qbe/unparse.ha
index e158433..23589b4 100644
--- a/qbe/unparse.ha
+++ b/qbe/unparse.ha
@@ -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) {
-- 
2.44.0
Reply to thread Export thread (mbox)