4e49830e09
anything SSA happens; liveness calculations now look like they might be working.
29 lines
438 B
C
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 : */
|