Represents the three arithmetic operations that you can use and abuse in Brain.
More...
#include <ArithmeticExpr.h>
|
| ArithmeticExpr (ArithmeticType type) |
|
void | code_gen (llvm::Module *M, llvm::IRBuilder<> &B, llvm::BasicBlock *BreakBB) |
| Generates the IR (Intermediate Representation) code to be executed by llvm. More...
|
|
void | debug_description (int level) |
| Prints debug information when Brain's compiler has the active flags: -v | -emit-ast. More...
|
|
void | ast_code_gen () |
| Method for the reverse code generation from the AST. It prints out to the stdout the token itself.
|
|
virtual bool | update_expression (char update) |
| Virtual method for updating the AST exprs. More...
|
|
virtual ExpressionType | expression_category () |
| Returns the category of the expression given by the caller.
|
|
|
std::string | type_to_string () |
|
Represents the three arithmetic operations that you can use and abuse in Brain.
void ArithmeticExpr::code_gen |
( |
llvm::Module * |
M, |
|
|
llvm::IRBuilder<> & |
B, |
|
|
llvm::BasicBlock * |
BreakBB |
|
) |
| |
|
virtual |
Generates the IR (Intermediate Representation) code to be executed by llvm.
- Parameters
-
M | A pointer to the Brain's module. |
B | A reference to the Brain's IR builder. |
BreakBB | A pointer to the Brain's basic block. |
Implements Expr.
void ArithmeticExpr::debug_description |
( |
int |
level | ) |
|
|
virtual |
Prints debug information when Brain's compiler has the active flags: -v | -emit-ast.
- Parameters
-
level | The width used to display the debug information (to mimic identation). |
Implements Expr.
The documentation for this class was generated from the following files: