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. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090928/d49d97d0/attachment.html>
$ 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 > >
Apparently Analagous Threads
- [lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
- [lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
- [lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
- [lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)
- [lldb-dev] Trying out lld to link windows binaries (using msvc as a compiler)