11 #include <llvm/Transforms/Utils/BuildLibCalls.h> 12 #include <llvm/IR/IRBuilder.h> 13 #include <llvm/IR/Module.h> 34 void code_gen(llvm::Module *M, llvm::IRBuilder<> &B,
35 llvm::BasicBlock *BreakBB);
54 #endif // BREAK_EXPR_H Abstract class in which all expressions in Brain implement from.
Definition: Expr.h:62
Class that represents the break operator in Brain.
Definition: BreakExpr.h:22
void code_gen(llvm::Module *M, llvm::IRBuilder<> &B, llvm::BasicBlock *BreakBB)
Generates the IR (Intermediate Representation) code to be executed by llvm.
Definition: BreakExpr.cpp:10
void debug_description(int level)
Prints debug information when Brain's compiler has the active flags: -v | -emit-ast.
Definition: BreakExpr.cpp:18
ExpressionType expression_category()
Returns the category of the expression given by the caller.
Definition: BreakExpr.cpp:35
void ast_code_gen()
Method for the reverse code generation from the AST. It prints out to the stdout the token itself...
Definition: BreakExpr.cpp:30