From b095aedd386e076d1f5a56b7384b836e653387d1 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Tue, 17 Sep 2019 01:28:55 +0200 Subject: Add support for r8-r15 registers, pass args to registers directly (sys-v) --- include/ssa/ssa.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'include/ssa') diff --git a/include/ssa/ssa.h b/include/ssa/ssa.h index 0b6501b..0ec43b0 100644 --- a/include/ssa/ssa.h +++ b/include/ssa/ssa.h @@ -26,6 +26,7 @@ typedef enum { SSA_FUNC_END, SSA_PUSH, SSA_PUSH_RET, + SSA_CALL_START, SSA_CALL, SSA_CALL_EXTERN, SSA_JUMP_ZERO, @@ -109,17 +110,19 @@ typedef struct { } SsaInsFuncStart; typedef struct { - u8 num_args; FunctionDecl *func_decl; u8 import_index; } SsaInsFuncCall; typedef struct { - u8 num_args; LhsExpr *func_decl_lhs; int import_index; } SsaInsFuncCallExtern; +typedef struct { + u8 num_args; +} SsaInsCallStart; + typedef struct { SsaRegister condition_reg; SsaLabelIndex target_label; -- cgit v1.2.3