title: Calculate number of times each instruction could be called at run-time
body: <p>I read the answer of this <a href="https://stackoverflow.com/questions/21060434/llvm-instrumentation">question</a></p>
  
  <p>How to calculate number of times each instruction could be called at run-time?</p>
  
  <p>I found at InstrProfiling.cpp file function called <code>castToIncrementInst</code>, but this function only calculate total number of instructions. I need the number of calls for each instrucion or basic block</p>