Displaying 2 results from an estimated 2 matches for "llvmengin".
Did you mean:
llvmengine
2013 Mar 17
0
[LLVMdev] LLVM ERROR: Program used external function 'X.foo' which could not be resolved!
...by this code
dumpModulesToBitcodeFile( std::string("./executableModule"), llvmModule);
llvm::Function* result = llvmModule->getFunction("X.foo");
OurFPM = new llvm::FunctionPassManager(llvmModule);
llvm::EngineBuilder eB(llvmModule);
eB.setEngineKind(llvm::EngineKind::JIT);
llvmEngine = eB.create();
but it fails at the next line:
llvmEngine->getPointerToFunction(result);
with this error
LLVM ERROR: Program used external function 'X.foo' which could not be resolved!
I don't have any idea why this is failing, as it should be clear from
the code, i'm run...
2012 Dec 17
1
[LLVMdev] Execution Engine issue with composite module
...dule(* executableModule, llvm::AbortProcessAction, &err);
which doesn't seem to find anything wrong with the linked module.
then i proceed to create the executionEngine:
llvm::EngineBuilder eB(executableModule);
eB.setEngineKind(llvm::EngineKind::JIT);
llvmEngine = eB.create();
which seems to go well, but as soon as i run:
llvm::Function* foo2 = moduleX->getFunction("foo2");
engine->getPointerToFunction(foo2);
i get the error:
LLVM ERROR: Program used external function 'foo' which could not be resolved!
A...