Displaying 1 result from an estimated 1 matches for "pexecutionengin".
Did you mean:
pexecutionengine
2016 Sep 19
3
llvm interpreter does not find function defined by addGlobalMapping
...llvm::InitializeNativeTargetAsmPrinter();
llvm::InitializeNativeTargetAsmParser();
llvm::LLVMContext &context(llvm::getGlobalContext());
llvm::Module *pModule = new llvm::Module("a module", context);
// Here the EngineKind-flag decides if JIT or interpreter is used.
auto pExecutionEngine = llvm::EngineBuilder(std::unique_ptr<llvm::Module>(pModule)
).setEngineKind(llvm::EngineKind::Interpreter).create();
pModule->setDataLayout(pExecutionEngine->getDataLayout());
// declaration of the c function.
std::vector<llvm::Type *> noArgTypes;
llvm::FunctionType...