From 2b30bf74245fa28d59491150395b54766783b379 Mon Sep 17 00:00:00 2001 From: Teddy Date: Thu, 1 May 2014 13:14:41 +0800 Subject: can generate native asm --- ssa.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'ssa.h') diff --git a/ssa.h b/ssa.h index 1cd57a8..240fb6e 100644 --- a/ssa.h +++ b/ssa.h @@ -58,8 +58,8 @@ struct CInst { LOAD, /* load from memory */ ADDR, /* get address */ MUL, DIV, MOD, ADD, SUB, - SHL, SHR, AND, XOR, OR, - LOR, LAND, NOR, + SHL, SHR, AND, XOR, OR, NOR, + LOR, LAND, EQ, NE, LT, GT, LE, GE, NEG } op; @@ -67,7 +67,8 @@ struct CInst { CInst_t next, prev; int id; int is_def; - int bret; + int bret; /* for CALL */ + int offset; /* for PUSH */ }; typedef struct CPhi CPhi; -- cgit v1.2.3