[LLVMdev] Question about lli

Jeffrey Yasskin jyasskin at google.com
Mon Sep 28 08:37:28 PDT 2009


$ lli -stats -force-interpreter test.bc
...
8 interpreter - Number of dynamic instructions executed


Note that lli defaults to the JIT, which doesn't measure the number of
instructions, so you need -force-interpreter, while the interpreter
may not implement the whole language.

On Mon, Sep 28, 2009 at 6:11 AM, Leonardo Maccari Rufino
<eulmr1 at gmail.com> wrote:
> Hi everybody,
> I'm working with llvm and I need to execute the llvm interpreter (lli) and
> get the number of instructions, in the llvm ir form, executed in the code.
> This information is very important for me and the -stats of lli dont show
> it.
> How can I do it?
>
> Thank's
> Leonardo M. R.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>




More information about the llvm-dev mailing list