288ee56203
to make special nodes like NOP work properly). Realise that the way I'm dealing with the instruction selector is all wrong; I need to physically copy chunks of tree to give to burg (so I can terminate them correctly).
11 lines
164 B
C
11 lines
164 B
C
#include "mcg.h"
|
|
|
|
static int vreg_count = 1;
|
|
|
|
struct vreg* new_vreg(void)
|
|
{
|
|
struct vreg* vreg = calloc(1, sizeof *vreg);
|
|
vreg->id = vreg_count++;
|
|
return vreg;
|
|
}
|