]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ir.h
Added my awesome MT1997 PRNG, and use it instead of stdio's rand()/srand() .. which...
[xonotic/gmqcc.git] / ir.h
diff --git a/ir.h b/ir.h
index 75946959a900ed0914dd21b2072359c2594f34d4..a39efca1bcdf973f10c395c6a97471aff93a0027 100644 (file)
--- a/ir.h
+++ b/ir.h
@@ -202,10 +202,6 @@ ir_value* ir_block_create_fieldaddress(ir_block*, lex_ctx, const char *label, ir
 ir_value* ir_block_create_general_instr(ir_block *self, lex_ctx, const char *label,
                                         int op, ir_value *a, ir_value *b, int outype);
 
-ir_value* ir_block_create_add(ir_block*, lex_ctx, const char *label, ir_value *l, ir_value *r);
-ir_value* ir_block_create_sub(ir_block*, lex_ctx, const char *label, ir_value *l, ir_value *r);
-ir_value* ir_block_create_mul(ir_block*, lex_ctx, const char *label, ir_value *l, ir_value *r);
-ir_value* ir_block_create_div(ir_block*, lex_ctx, const char *label, ir_value *l, ir_value *r);
 ir_instr* ir_block_create_phi(ir_block*, lex_ctx, const char *label, int vtype);
 ir_value* ir_phi_value(ir_instr*);
 void ir_phi_add(ir_instr*, ir_block *b, ir_value *v);
@@ -312,6 +308,10 @@ typedef struct ir_builder_s
 
     ir_value    **extparams;
 
+    /* the highest func->allocated_locals */
+    size_t        max_locals;
+    uint32_t      first_common_local;
+
     const char **filenames;
     qcint       *filestrings;
     /* we cache the #IMMEDIATE string here */