![]() |
chigraph
master
Systems programming language written for beginners in LLVM
|
#include "chi/Context.hpp"
#include "chi/BitcodeParser.hpp"
#include "chi/DefaultModuleCache.hpp"
#include "chi/GraphFunction.hpp"
#include "chi/NodeType.hpp"
#include "chi/GraphModule.hpp"
#include "chi/GraphStruct.hpp"
#include "chi/JsonDeserializer.hpp"
#include "chi/LLVMVersion.hpp"
#include "chi/LangModule.hpp"
#include "chi/NodeInstance.hpp"
#include "chi/Support/ExecutablePath.hpp"
#include "chi/Support/Result.hpp"
#include <llvm/ExecutionEngine/ExecutionEngine.h>
#include <llvm/ExecutionEngine/GenericValue.h>
#include <llvm/ExecutionEngine/SectionMemoryManager.h>
#include <llvm/IR/Module.h>
#include <llvm/IR/Type.h>
#include <llvm/IR/Verifier.h>
#include <llvm/Linker/Linker.h>
#include <llvm/Support/TargetRegistry.h>
#include <llvm/Support/TargetSelect.h>
#include <llvm/Support/raw_ostream.h>
#include <llvm/Target/TargetMachine.h>
#include <llvm/Target/TargetOptions.h>
#include <boost/algorithm/string/replace.hpp>
#include <boost/filesystem.hpp>
#include <boost/range.hpp>
#include <deque>
#include <unordered_set>
Go to the source code of this file.
Namespaces | |
chi | |
The namespace where chigraph lives. | |
Functions | |
Result | chi::interpretLLVMIR (std::unique_ptr< llvm::Module > mod, llvm::CodeGenOpt::Level optLevel=llvm::CodeGenOpt::Default, const std::vector< llvm::GenericValue > &args={}, llvm::Function *funcToRun=nullptr, llvm::GenericValue *ret=nullptr) |
Interpret LLVM IR, just a convenience function. More... | |
Result | chi::interpretLLVMIRAsMain (std::unique_ptr< llvm::Module > mod, llvm::CodeGenOpt::Level optLevel=llvm::CodeGenOpt::Default, const std::vector< std::string > &args={}, llvm::Function *funcToRun=nullptr, int *ret=nullptr) |
Interpret LLVM IR as if it were the main function. More... | |
std::string | chi::stringifyLLVMType (llvm::Type *ty) |
Turns a type into a string. More... | |
boost::filesystem::path | chi::workspaceFromChildPath (const boost::filesystem::path &path) |
Get the workspace directory from a child of the workspace directory Example: say you have a workspace at ~/chi/ If you used this with ~/chi/src/ it would return ~/chi/. More... | |