[block-freq] Add a print method on BlockFrequencyImpl for printing block frequencies...
authorMichael Gottesman <mgottesman@apple.com>
Fri, 13 Dec 2013 23:59:44 +0000 (23:59 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Fri, 13 Dec 2013 23:59:44 +0000 (23:59 +0000)
commit5efbda1437caa321775f240ea54ae4c16bdd3a6a
tree26fb0bce9fea622442bddc5218600ad531c3becf
parentccf34d22952bee65df527c838a3f413140e20ffe
[block-freq] Add a print method on BlockFrequencyImpl for printing block frequencies and a convenience method for the common case of getting/printing a basic block.

BlockFrequencies can only be printed relative to their entry frequency. Thus
since the entry frequency is no longer necessarily a static constant on the
BlockFrequency class and is instead a potentially dynamic value taken from
BlockFrequencyImpl, we must necessarily print it via a method on
BlockFrequencyImpl.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197285 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/BlockFrequencyImpl.h