search for: recompileandlinkfunct

Displaying 2 results from an estimated 2 matches for "recompileandlinkfunct".

2014 Jun 29
2
[LLVMdev] Wrong behavior modifying and executing llvm::Function with JIT Engine
...step using 'Value::replaceAllUsesWith' for the next function I generated and run it with JIT. Then again the code generated is what I expected, this time function call changes from 'sum()' to 'get_int_10()', however the problem is I get a 5 instead of a 10. I tried 'recompileAndLinkFunction' as well as 'freeMachineCodeForFunction' and I always get the return value from the first function, and not the second as I should even though the generated code that I dump() says that it has the correct function call. I am using version 3.4 for both clang and llvm. And also I...
2014 Jun 29
2
[LLVMdev] Wrong behavior modifying and executing llvm::Function with JIT Engine
getFunction() -> getPointerToFunction() 2014-06-29 6:40 GMT+03:00 Yaron Keren <yaron.keren at gmail.com>: > Hi Adrian, > > freeMachineCodeForFunction is required but recompileAndLinkFunction is > not, > you can use getFunction() always. > > Try to M->dump() calling M->getFunction() where M is the Module *. > See if how the changes appear in the module dump as expected. > > Yaron > > > > > > 2014-06-29 5:56 GMT+03:00 Adrian Ortega <elf...