From a829953c2093b0f90bdc471dc7bed024555ce598 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Mon, 5 Jul 2021 21:41:27 -0400 Subject: [PATCH] push ast.c --- cerise/src/ast.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/cerise/src/ast.c b/cerise/src/ast.c index a2f7ba7..6732513 100644 --- a/cerise/src/ast.c +++ b/cerise/src/ast.c @@ -1,5 +1,15 @@ #include +/* Optimizations to Perform: + +* Constant folding - (Constant expression evaluation) +* Dead code elimination +* Block coalescing +* + +*/ + + AstNode* ast_new(int type, AstNode* l0, AstNode* l1, AstNode* l2) { AstNode* node = calloc(1, sizeof(AstNode)); -- 2.49.0