11 #include <llvm/IR/LLVMContext.h> 12 #include <llvm/IR/IRBuilder.h> 13 #include <llvm/IR/Module.h> 14 #include <llvm/IR/Value.h> 30 static llvm::GlobalVariable *__brain_index_ptr;
32 static llvm::GlobalVariable *__brain_cells_ptr;
48 void code_gen(llvm::Module *M, llvm::IRBuilder<> &B);
static ASTInfo * instance()
Returns the instance of ASTInfo class if the member _instance is nullptr, otherwise it creates a new ...
Definition: ASTInfo.cpp:15
llvm::GlobalVariable * get_index_ptr()
Definition: ASTInfo.cpp:24
llvm::GlobalVariable * get_cells_ptr()
Definition: ASTInfo.cpp:29
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.
Definition: ASTInfo.h:62
The abstract syntax tree.
Definition: ASTInfo.h:19
void code_gen(llvm::Module *M, llvm::IRBuilder<> &B)
Generates the IR (Intermediate Representation) code to be executed by llvm.
Definition: ASTInfo.cpp:34