]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ir.h
Merge branch 'master' of github.com:graphitemaster/gmqcc
[xonotic/gmqcc.git] / ir.h
diff --git a/ir.h b/ir.h
index 2e219bdb6c54c6f085d99c9ee1aa327082ea3ce7..d3ad5b3715ca919ebd83dbc7be280cfe30f4bcbf 100644 (file)
--- a/ir.h
+++ b/ir.h
@@ -159,6 +159,12 @@ ir_value* ir_block_create_load_from_ent(ir_block*, const char *label, ir_value *
 
 ir_value* ir_block_create_fieldaddress(ir_block*, const char *label, ir_value *entity, ir_value *field);
 
+/* This is to create an instruction of the form
+ * <outtype>%label := opcode a, b
+ */
+ir_value* ir_block_create_general_instr(ir_block *self, const char *label,
+                                        int op, ir_value *a, ir_value *b, int outype);
+
 ir_value* ir_block_create_add(ir_block*, const char *label, ir_value *l, ir_value *r);
 ir_value* ir_block_create_sub(ir_block*, const char *label, ir_value *l, ir_value *r);
 ir_value* ir_block_create_mul(ir_block*, const char *label, ir_value *l, ir_value *r);