[LLVMdev] is this code really JITed and/or optimized =?koi8-r?Q?=3F=20?=..
Chris Lattner
sabre at nondot.org
Fri Aug 13 15:53:31 PDT 2004
On Sat, 14 Aug 2004, Valery A.Khamenya wrote:
> hm, here is the part of my code starting LLVM function:
>
> ///////////////////////////
> ExistingModuleProvider* MP = new ExistingModuleProvider(M);
> ExecutionEngine* EE = ExecutionEngine::create( MP, true );
As Reid pointed out, changing true to false will get it to work.
> // Call the `foo' function with no arguments:
> std::vector<GenericValue> noargs;
> GenericValue gv = EE->runFunction(FooF, noargs);
> ///////////////////////////
>
> for LLVM developers no debuging should be needed to make
> quick and right diagnosis :)
Sure, but part of our goal is to get you to learn more about how stuff
works too :)
-Chris
--
http://llvm.org/
http://nondot.org/sabre/
More information about the llvm-dev
mailing list