complete a crude register allocator

This commit is contained in:
Quentin Carbonneaux 2015-07-27 14:34:22 -04:00
parent ee784dbfcd
commit 8899449c39
4 changed files with 124 additions and 37 deletions

View file

@ -20,8 +20,6 @@ enum {
RCX,
RDX,
RBX,
RSP,
RBP,
RSI,
RDI,
R8,
@ -32,6 +30,8 @@ enum {
R13,
R14,
R15,
RSP, /* reserved */
RBP, /* reserved */
// NReg = R15 - RAX + 1
NReg = 3 /* for test purposes */
};
@ -89,6 +89,7 @@ enum {
OLoad,
/* reserved instructions */
OCopy,
OSwap,
OIACltd,
OIADiv,
OLast