diff --git a/ast.h b/ast.h index f114999..bea59d5 100644 --- a/ast.h +++ b/ast.h @@ -117,6 +117,8 @@ void ast_value_delete(ast_value*); bool ast_value_set_name(ast_value*, const char *name); bool ast_value_codegen(ast_value*, ast_function*, bool lvalue, ir_value**); +bool ast_local_codegen(ast_value *self, ir_function *func); +bool ast_global_codegen(ast_value *self, ir_builder *ir); /* Binary *