search for: ftwrapper

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

2016 Sep 19
3
llvm interpreter does not find function defined by addGlobalMapping
...the c function. auto pFunction2 = pModule->getFunction("testFunction"); auto temp = 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...