8 #ifndef INCREMENT_EXPR_H 9 #define INCREMENT_EXPR_H 11 #include <llvm/IR/IRBuilder.h> 12 #include <llvm/IR/Module.h> 26 explicit IncrementExpr(
int increment) : _increment(increment) { }
35 void code_gen(llvm::Module *M, llvm::IRBuilder<> &B,
36 llvm::BasicBlock *BreakBB);
56 #endif // INCREMENT_EXPR_H Abstract class in which all expressions in Brain implement from.
Definition: Expr.h:62
void code_gen(llvm::Module *M, llvm::IRBuilder<> &B, llvm::BasicBlock *BreakBB)
Generates the IR (Intermediate Representation) code to be executed by llvm.
Definition: IncrementExpr.cpp:10
Class that represent the increment operator in Brain.
Definition: IncrementExpr.h:21
void debug_description(int level)
Prints debug information when Brain's compiler has the active flags: -v | -emit-ast.
Definition: IncrementExpr.cpp:27
void ast_code_gen()
Method for the reverse code generation from the AST. It prints out to the stdout the token itself...
Definition: IncrementExpr.cpp:46
bool update_expression(char update)
Virtual method for updating the AST exprs.
Definition: IncrementExpr.cpp:65