cpp: use a simple hash table instead of tab struct
[neatcc.git] / reg.h
blobe696381530f0c50b9f23d54d9d83a2f8c97da007
1 void r_func(int nargs, int vargs); /* reset variables for functions */
2 int r_alloc(int leaf, int used); /* register allocation */
4 int r_regmap(int id); /* the register allocated to a local */
5 int r_lregs(void); /* registers assigned to locals */
6 int r_sargs(void); /* arguments to save on the stack */
8 void r_mk(int sz); /* create local */
9 void r_rm(int id); /* remove local */
10 void r_read(int id); /* read local */
11 void r_write(int id); /* write to local */
12 void r_addr(int id); /* using local address */
13 void r_label(int l); /* create label */
14 void r_jmp(int l); /* jump to label */