diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-11-19 20:25:45 +0200 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2023-11-19 20:25:45 +0200 |
| commit | c85e4b4d2411e60af7387dec663ea62b03743eab (patch) | |
| tree | ae9d6a4f0caf4a24b8636050505490d03aa50047 /include | |
| parent | 17a27d445295bbaf7c7c470b1e4648635af2f0a3 (diff) | |
| download | ek-c85e4b4d2411e60af7387dec663ea62b03743eab.tar.gz ek-c85e4b4d2411e60af7387dec663ea62b03743eab.zip | |
add implicit ret to void functions
Diffstat (limited to 'include')
| -rw-r--r-- | include/ek/ast.h | 1 | ||||
| -rw-r--r-- | include/ek/ops.h | 1 |
2 files changed, 2 insertions, 0 deletions
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, |
