[LLVMdev] Helpful (?) hints

Chris Lattner sabre at nondot.org
Sun Dec 8 16:10:01 PST 2002

Sorry to respond to my own posts. :)

> * Analyze has a pass "-instcount" written by Dinakar, which will tell you
>   things like the number of functions, basic blocks, and instructions are
>   in a program.  It will even classify the instructions into different
>   opcodes, if you want to report things like #loads+#stores or something.

I should point out that to use this, you must turn on -stats output:

  analyze foo.bc -instcount -stats



More information about the llvm-dev mailing list