X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fpic%2Fralloc.h;h=4c85fceea5c9c27c240b81811762cae3e265b29c;hb=3e5db37d509d6ad71df792e58769955068a37266;hp=234d4f2a0b9bba4c1940b8b664e053556517271e;hpb=aaa8b9fedeebcbc459d2e8047d73cf23d697ce40;p=fw%2Fsdcc diff --git a/src/pic/ralloc.h b/src/pic/ralloc.h index 234d4f2a..4c85fcee 100644 --- a/src/pic/ralloc.h +++ b/src/pic/ralloc.h @@ -31,15 +31,6 @@ #include "pcoderegs.h" -enum -{ - R2_IDX = 0, R3_IDX, R4_IDX, - R5_IDX, R6_IDX, R7_IDX, - R0_IDX, R1_IDX, X8_IDX, - X9_IDX, X10_IDX, X11_IDX, - X12_IDX, CND_IDX -}; - enum { REG_PTR=1, REG_GPR, @@ -48,12 +39,6 @@ enum { REG_STK, REG_TMP }; -//#define REG_PTR 0x01 -//#define REG_GPR 0x02 -//#define REG_CND 0x04 -//#define REG_SFR 0x08 -//#define REG_STK 0x10 /* Use a register as a psuedo stack */ -//#define REG_TMP 0x20 /* definition for the registers */ typedef struct regs @@ -61,10 +46,9 @@ typedef struct regs short type; /* can have value * REG_GPR, REG_PTR or REG_CND * This like the "meta-type" */ - short pc_type; /* pcode type */ - short rIdx; /* index into register table */ - // short otype; - char *name; /* name */ + short pc_type; /* pcode type */ + short rIdx; /* index into register table */ + char *name; /* name */ unsigned isFree:1; /* is currently unassigned */ unsigned wasUsed:1; /* becomes true if register has been used */