From 2ca9a54daaa0a955dabf38862cd777be359252e0 Mon Sep 17 00:00:00 2001 From: lemon Date: Sat, 15 Nov 2025 19:53:47 +0100 Subject: ir: 'trap' jump; c: __builtin_trap; lex: __has_builtin --- ir/ir.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ir/ir.h') diff --git a/ir/ir.h b/ir/ir.h index 22b920f..f453c51 100644 --- a/ir/ir.h +++ b/ir/ir.h @@ -113,7 +113,7 @@ struct instr { union ref l, r; /* args */ }; -enum jumpkind { JXXX, Jb, Jret, }; +enum jumpkind { JXXX, Jb, Jret, Jtrap, }; struct block { int id; @@ -263,6 +263,7 @@ void useblk(struct function *, struct block *); void putbranch(struct function *, struct block *); void putcondbranch(struct function *, union ref arg, struct block *t, struct block *f); void putreturn(struct function *, union ref r0, union ref r1); +void puttrap(struct function *); /** fold.c **/ bool foldbinop(union ref *to, enum op, enum irclass, union ref l, union ref r); -- cgit v1.2.3