Displaying 3 results from an estimated 3 matches for "execengine".
Did you mean:
exec_engine
2008 Dec 19
2
[LLVMdev] strange behaviour after extracting optimization pass code
...Manager fpm(&mp);
fpm.add(new llvm::TargetData(mod));
fpm.add(llvm::createInstructionCombiningPass());
fpm.add(llvm::createReassociatePass());
fpm.add(llvm::createGVNPass());
fpm.add(llvm::createCFGSimplificationPass());
fpm.run(*f);
//...get execution engine
//... call execEngine->getPointerToFunction()
//... execute function
-----------------------------
Now if I extract exactly this code and put it into a different method
like follows, it produces a giant pile of data garbage in the console
and any calls receiving the module-pointer after the optimization lead
t...
2008 Dec 19
1
[LLVMdev] strange behaviour after extracting optimization pass code
...fpm(&mp);
fpm.add(new llvm::TargetData(mod));
fpm.add(llvm::createInstructionCombiningPass());
fpm.add(llvm::createReassociatePass());
fpm.add(llvm::createGVNPass());
fpm.add(llvm::createCFGSimplificationPass());
fpm.run(*f);
//...get execution engine
//... call execEngine->getPointerToFunction()
//... execute function
-----------------------------
Now if I extract exactly this code and put it into a different method
like follows, it produces a giant pile of data garbage in the console
and any calls receiving the module-pointer after the optimization lead...
2008 Dec 19
0
[LLVMdev] strange behaviour after extracting optimization pass code
...add(new llvm::TargetData(mod));
> fpm.add(llvm::createInstructionCombiningPass());
> fpm.add(llvm::createReassociatePass());
> fpm.add(llvm::createGVNPass());
> fpm.add(llvm::createCFGSimplificationPass());
> fpm.run(*f);
}
> //...get execution engine
> //... call execEngine->getPointerToFunction()
> //... execute function