wip on instruction selection

This commit is contained in:
Quentin Carbonneaux 2015-12-08 13:39:17 -05:00
parent 0791dd026e
commit 1dc0089684
5 changed files with 92 additions and 48 deletions

View file

@ -181,18 +181,32 @@ enum Op {
OAnd,
OCmp,
OCmp1 = OCmp + NCmp-1,
OStored,
OStores,
OStorel,
OStorew,
OStoreh,
OStoreb,
OLoad,
OLoad1 = OLoad + NTy-1,
OLoadl,
OLoadsw,
OLoaduw,
OLoadsh,
OLoaduh,
OLoadsb,
OLoadub,
OLoadd,
OLoads,
OLoad = OLoadl,
OLoad1 = OLoads,
OExt,
OExt1 = OExt + NTy-1,
OAlloc,
OAlloc1 = OAlloc + NAlign-1,
OCopy,
NPubOp,
@ -321,6 +335,7 @@ struct Con {
double f;
} bits;
char flt;
char emit;
};
typedef struct Addr Addr;