ack/mach/proto/mcg/reg.h
David Given 4e49830e09 Overhaul of everything phi related; critical edge splitting now happens before
anything SSA happens; liveness calculations now look like they might be
working.
2016-10-08 00:21:23 +02:00

29 lines
438 B
C

#ifndef REG_H
#define REG_H
#define WITH_ATTR(a) (1<<(a))
struct hreg
{
const char* name;
uint32_t attrs;
bool is_stacked;
int offset;
};
struct vreg
{
int id;
struct hop* defined;
ARRAYOF(struct hop) used;
};
extern struct vreg* new_vreg(void);
extern struct hreg* new_hreg(struct burm_register_data* brd);
extern struct hreg* new_stacked_hreg(int offset, uint32_t attrs);
#endif
/* vim: set sw=4 ts=4 expandtab : */