From 81c5f8e750fcda6a2451fb54604130431434f88f Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 17 Aug 2019 02:57:08 +0200 Subject: Implement more instructions, implement function parameters and arguments --- include/ssa/ssa.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include/ssa/ssa.h') diff --git a/include/ssa/ssa.h b/include/ssa/ssa.h index 016acc8..21d7f40 100644 --- a/include/ssa/ssa.h +++ b/include/ssa/ssa.h @@ -24,7 +24,8 @@ typedef enum { SSA_PUSH, SSA_CALL, SSA_JUMP_ZERO, - SSA_JUMP + SSA_JUMP, + SSA_RET } SsaInstruction; typedef enum { @@ -75,6 +76,7 @@ typedef struct { } SsaInsFuncStart; typedef struct { + u8 num_args; SsaRegister result; FunctionDecl *func_decl; } SsaInsFuncCall; -- cgit v1.2.3