Hi Rajendra,
You don't mention how you want to use the data, but if it is within a
compiler then block profiling information can be trivially derived from
edge profiling information. For each block just sum every incoming edge
to obtain the number of times that block was executed.
If you wish to do profiling for performance monitoring then llvm-prof
can tell you the hottest parts of your code. Or, 'llvm-prof -A' prints
your entire program with ";;; Basic block executed N times."
annotations.
Regards,
Alastair.
On 08/08/12 20:43, Rajendra Patel wrote:> I am trying to profile my code with -enable-block -profile option on opt
command.
>
> It returns no such option available. I have also explored the opt help and
found
> that there is really no block profiling option. I only found edge
profiling.
>
> I want to identify total number of blocks along with block occurrence in my
> application.
>
> I'm new in using LLVM.
>
> Please help me.
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>