aboutsummaryrefslogtreecommitdiff
path: root/ir.h
diff options
context:
space:
mode:
Diffstat (limited to 'ir.h')
-rw-r--r--ir.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ir.h b/ir.h
index 2390543..213793f 100644
--- a/ir.h
+++ b/ir.h
@@ -85,6 +85,8 @@ void ir_delete(struct ir *ir);
void ir_print(struct ir *ir, FILE *f);
void irins_print(struct irins *ins, FILE *f);
+const char* condcode_show(enum condcode condcode);
+void ref_show(struct ref ref, char *dest); // dest must have size at least 40
const char* ir_str(const char *str); // returns interned string
@@ -112,3 +114,5 @@ struct ref ref_reg(int reg);
struct ref ref_mem(int reg, int offset, enum refrel rel);
struct ref ref_imm(int imm);
struct ref ref_next_register(void);
+
+bool ref_equal(struct ref r1, struct ref r2);