From 9126afa2da0e1635d78429075cc44ca576f68169 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Thu, 24 Nov 2022 11:08:33 +0100 Subject: new hlt block terminator It is handy to express when the end of a block cannot be reached. If a hlt terminator is executed, it traps the program. We don't go the llvm way and specify execution semantics as undefined behavior. --- tools/lexh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/lexh.c b/tools/lexh.c index 1aea3e0..a07514e 100644 --- a/tools/lexh.c +++ b/tools/lexh.c @@ -25,7 +25,7 @@ char *tok[] = { "cgtd", "cged", "cned", "ceqd", "cod", "cuod", "vaarg", "vastart", "...", "env", - "call", "phi", "jmp", "jnz", "ret", "export", + "call", "phi", "jmp", "jnz", "ret", "hlt", "export", "function", "type", "data", "section", "align", "l", "w", "sh", "uh", "h", "sb", "ub", "b", "d", "s", "z", "loadw", "loadl", "loads", "loadd", -- cgit 1.4.1