search for: pfunction2

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

Did you mean: function2
2016 Sep 19
3
llvm interpreter does not find function defined by addGlobalMapping
...alMapping(pFunction,reinterpret_cast<void*>(&testFunction)); // generation of llvm code auto pBlock = llvm::BasicBlock::Create(context, "evaluation"); llvm::IRBuilder<> builder(context); builder.SetInsertPoint(pBlock); // code for call of 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::ge...