wip on instruction selection
This commit is contained in:
parent
0791dd026e
commit
1dc0089684
5 changed files with 92 additions and 48 deletions
19
lisc/lisc.h
19
lisc/lisc.h
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue