search for: pwrapperfunction

Displaying 1 result from an estimated 1 matches for "pwrapperfunction".

2016 Sep 19
3
llvm interpreter does not find function defined by addGlobalMapping
...emp = builder.CreateCall(pFunction2, std::vector<llvm::Value*>(), "calltmp"); builder.CreateRet(temp); // generation of the llvm function calling the c function llvm::FunctionType* ftWrapper = llvm::FunctionType::get(llvm::Type::getDoubleTy(context),noArgTypes, false); auto pWrapperFunction = llvm::Function::Create(ftWrapper, llvm::Function::ExternalLinkage, "AFunction",pModule); pWrapperFunction->getBasicBlockList().push_back(pBlock); // calling the generated llvm function pExecutionEngine->finalizeObject(); pExecutionEngine->runFunction(pWrapperFunction,s...