add a code emitter for at&t syntax

This commit is contained in:
Quentin Carbonneaux 2015-07-28 22:40:50 -04:00
parent 5f14d7fd7c
commit fd964388f7
4 changed files with 145 additions and 1 deletions

View file

@ -19,9 +19,9 @@ enum {
RAX = 1,
RCX,
RDX,
RBX,
RSI,
RDI,
RBX,
R8,
R9,
R10,
@ -164,6 +164,7 @@ struct Fn {
int ntmp;
int nblk;
Blk **rpo;
uint nspill;
};
@ -197,3 +198,6 @@ void spill(Fn *);
/* rega.c */
void rega(Fn *);
/* emit.c */
void emitfn(Fn *, FILE *);