[LLVMdev] LLVM beginner question

Chris Lattner sabre at nondot.org
Mon Jul 25 13:32:04 PDT 2005


On Mon, 25 Jul 2005, Murali Nethi wrote:
> I am new to llvm and have read all the documents and managed to get
> the llvm tool working on linux without much problem. I am trying to
> generate some static analysis information about my program using llvm
> virtual machine architecture.
>
> the file is really simple hello world program with a small loop which
> increments a variable until a particular iteration.

ok.

> However, I need informations as to specific blocks and instruction mix
> information across the blocks. Is there any pass that i could give to
> analyze to obtain these statistics?

Not currently.  If you're interested in enhancing the -instcount pass, the 
source is available in lib/Analysis/InstCount.cpp

-Chris

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




More information about the llvm-dev mailing list