4 #include <llvm/IR/Module.h> 24 return m_builder.GetInsertBlock()->getParent()->getParent();
31 auto mainFunc =
m_builder.GetInsertBlock()->getParent();
33 if (mainFunc == &mainFunc->getParent()->getFunctionList().front())
41 m_runtimeManager(_runtimeManager)
Adapted from code found on http://stackoverflow.com/questions/180947/base64-decode-snippet-in-c Origi...
llvm::Module * getModule()
Reference to the IR module being compiled.
assert(len-trim+(2 *lenIndices)<=WIDTH)
Base class for compiler helpers like Memory, GasMeter, etc.
llvm::Function * getMainFunction()
Reference to the main module function.
RuntimeHelper(RuntimeManager &_runtimeManager)
CompilerHelper(IRBuilder &_builder)
IRBuilder & m_builder
Reference to parent compiler IR builder.
llvm::IRBuilder<> IRBuilder