aboutsummaryrefslogtreecommitdiffhomepage
path: root/ir/ir.h
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-11-15 19:53:47 +0100
committerlemon <lsof@mailbox.org>2025-11-15 19:53:47 +0100
commit2ca9a54daaa0a955dabf38862cd777be359252e0 (patch)
tree51a0e9470a5bbd4bbe0b1d00fc50da2dc9ad9d93 /ir/ir.h
parent1910d875cfcad320cbb87c5e8c846d5c53846a1a (diff)
ir: 'trap' jump; c: __builtin_trap; lex: __has_builtin
Diffstat (limited to 'ir/ir.h')
-rw-r--r--ir/ir.h3
1 files changed, 2 insertions, 1 deletions
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);