The abstract syntax tree.
More...
#include <ASTInfo.h>
|
bool | is_using_io_lib |
| Controls if the io.ll module is included within the module which is being interpreted, if the module does not uses any function defined in io.c so it won't include io.ll in their .ll code.
|
|
The abstract syntax tree.
void ASTInfo::code_gen |
( |
llvm::Module * |
M, |
|
|
llvm::IRBuilder<> & |
B |
|
) |
| |
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. |
llvm::GlobalVariable * ASTInfo::get_cells_ptr |
( |
| ) |
|
- Returns
- A pointer to the array of cells used as the Brain's memory.
llvm::GlobalVariable * ASTInfo::get_index_ptr |
( |
| ) |
|
- Returns
- A pointer to the actual index used by Brain parser.
Returns the instance of ASTInfo class if the member _instance is nullptr, otherwise it creates a new ASTInfo object and returns it.
- Returns
- A pointer to the ASTInfo instance.
The documentation for this class was generated from the following files:
- src/ast/general/ASTInfo.h
- src/ast/general/ASTInfo.cpp