11 #include <llvm/ExecutionEngine/SectionMemoryManager.h> 12 #include <llvm/ExecutionEngine/ExecutionEngine.h> 13 #include <llvm/ExecutionEngine/GenericValue.h> 14 #include <llvm/ExecutionEngine/MCJIT.h> 16 #include <llvm/Support/ManagedStatic.h> 17 #include <llvm/Support/TargetSelect.h> 18 #include <llvm/Support/raw_ostream.h> 19 #include <llvm/Support/SourceMgr.h> 21 #include <llvm/IR/LLVMContext.h> 22 #include <llvm/IR/IRBuilder.h> 23 #include <llvm/IR/Module.h> 24 #include <llvm/IR/Value.h> 25 #include <llvm/IRReader/IRReader.h> 34 #include "../parser/Parser.h" 35 #include "../ast/general/ASTInfo.h" 36 #include "ArgsHandler.h" 37 #include "ArgsOptions.h" 50 std::string module_name;
52 llvm::ExecutionEngine *execution_engine;
54 llvm::EngineBuilder *engine_builder;
76 int init(
int argc,
char** argv);
int init(int argc, char **argv)
Initializes Brain by passing the arguments to be handled and parsing the source file.
Definition: Bootstrap.cpp:27
static Bootstrap * instance()
Returns the instance of Bootstrap class if the member _instance is nullptr, otherwise it creates a ne...
Definition: Bootstrap.cpp:18
Class that starts Brain, it has all the needed components to initialize the Brain interpreter...
Definition: Bootstrap.h:44