[LLVMdev] User-specified JIT passes

Warren Armstrong warren.armstrong at anu.edu.au
Sun Oct 28 22:55:47 PDT 2007


Chris Lattner wrote:
>> 2.  Is granting this ability to the JIT desirable?  If so, I'm  
>> happy to
>> clean up my temporary hack job and submit a patch.
>>     
>
> Not so much.  "lli" is supposed to be a really simple driver around  
> the JIT, it isn't supposed to be a maximally useful user program.
>
> If you'd like a version of lli that runs optimizations, I'd suggest  
> taking lli, copying it, and tuning it into the tool that you'd like  
> it to be.  I'd like to keep lli simple and focused on what it does,  
> which is provide primitive command line access to the jit/interpreter.
>
> Note that you can potentially just use a shell script which does:
>
> opt foo.bc -myopt | lli ...
>
> -Chris
>   

Ah, ok.  A shell script wouldn't work, because I'm envisioning
optimisation happening at runtime. 
I'll use your idea of creating a customised version of lli.

Thanks,
Warren



More information about the llvm-dev mailing list