11 #include <llvm/IR/IRBuilder.h> 12 #include <llvm/IR/Module.h> 36 void code_gen(llvm::Module *M, llvm::IRBuilder<> &B,
37 llvm::BasicBlock *BreakBB);
57 #endif // SHIFT_EXPR_H Abstract class in which all expressions in Brain implement from.
Definition: Expr.h:62
void ast_code_gen()
Method for the reverse code generation from the AST. It prints out to the stdout the token itself...
Definition: ShiftExpr.cpp:43
void debug_description(int level)
Prints debug information when Brain's compiler has the active flags: -v | -emit-ast.
Definition: ShiftExpr.cpp:24
Class that represents the shift operator in Brain.
Definition: ShiftExpr.h:21
bool update_expression(char update)
Virtual method for updating the AST exprs.
Definition: ShiftExpr.cpp: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: ShiftExpr.cpp:10