[LLVMdev] RE: is this code really JITed and/or optimized ? ..

Chris Lattner sabre at nondot.org
Sun Aug 15 17:37:09 PDT 2004


I wrote:
> If you look at the 3 lines above the assert that is failing, you'll see
> this:
>     // FIXME: This code should handle a couple of common cases efficiently, but
>     // it should also implement the general case by code-gening a new anonymous
>     // nullary function to call.
> Basically it's saying that we only support one argument functions that
> take an integer right now.  This is a bug/suboptimality, hence the
> FIXME.

Reid wrote:
> ick! Is there a bugzilla on this?

... and filed PR419.


Since then I've implemented the FIXME, so now the JIT can call arbitrary
non-varargs functions with the runFunction method now, and I've closed
PR419.

Also, I simplified the HowToUseJIT example (which is great btw Valery,
thanks!), and changed it to print out the module it's about to execute
(better for demo purposes).  I also switched to to default to using the
JIT instead of forcing the interpreter.

If you have any more problems with this, please let me know!

-Chris

-- 
http://llvm.org/
http://nondot.org/sabre/




More information about the llvm-dev mailing list