I read the answer of this question
How to calculate number of times each instruction could be called at run-time?
I found at InstrProfiling.cpp file function called castToIncrementInst, but this function only calculate total number of instructions. I need the number of calls for each instrucion or basic block