From c85e4b4d2411e60af7387dec663ea62b03743eab Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 19 Nov 2023 20:25:45 +0200 Subject: add implicit ret to void functions --- include/ek/ast.h | 1 + include/ek/ops.h | 1 + 2 files changed, 2 insertions(+) (limited to 'include') diff --git a/include/ek/ast.h b/include/ek/ast.h index d36860f..e078f59 100644 --- a/include/ek/ast.h +++ b/include/ek/ast.h @@ -22,6 +22,7 @@ #define AST_CAST(x) x->_cast #define AST_PROC(x) x->_proc #define AST_VAR(x) x->_var +#define AST_RETURN(x) x->_return #define AST_STRUCT(x) x->_struct #define AST_ENUM(x) x->_enum #define AST_CALL(x) x->_call diff --git a/include/ek/ops.h b/include/ek/ops.h index e913d37..0d9d433 100644 --- a/include/ek/ops.h +++ b/include/ek/ops.h @@ -27,6 +27,7 @@ enum opcode { OP_LDT, OP_STW, OP_LDW, + OP_RET, OP_MV, /* kind of meta op, will be realized as either load/store or register move */ OP_LABEL, OP_COMMENT, -- cgit v1.3