Displaying 1 result from an estimated 1 matches for "noargtyp".
Did you mean:
noargtypes
2016 Sep 19
3
llvm interpreter does not find function defined by addGlobalMapping
...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* ft = llvm::FunctionType::get(llvm::Type::getDoubleTy(context),noArgTypes, false);
auto pFunction = llvm::Function::Create(ft, llvm::Function::ExternalLinkage, "testFunction",pModule);
pExecutionEngine->addGlobalMapping(pFunction,reinterpret_cast<void*>...