*/
#ifndef GMQCC_IR_HDR
#define GMQCC_IR_HDR
-
+#include "gmqcc.h"
/* ir_value */
typedef struct
ir_value **locals;
size_t allocated_locals;
+ size_t globaltemps;
ir_block* first;
ir_block* last;
/* the highest func->allocated_locals */
size_t max_locals;
+ size_t max_globaltemps;
uint32_t first_common_local;
+ uint32_t first_common_globaltemp;
const char **filenames;
qcint *filestrings;
/* we cache the #IMMEDIATE string here */
- qcint str_immediate;
+ qcint str_immediate;
+ /* there should just be this one nil */
+ ir_value *nil;
} ir_builder;
ir_builder* ir_builder_new(const char *modulename);