Mercurial > hg > CbC > CbC_llvm
diff docs/BranchWeightMetadata.rst @ 148:63bd29f05246
merged
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 14 Aug 2019 19:46:37 +0900 |
parents | c2174574ed3a |
children |
line wrap: on
line diff
--- a/docs/BranchWeightMetadata.rst Sun Dec 23 19:23:36 2018 +0900 +++ b/docs/BranchWeightMetadata.rst Wed Aug 14 19:46:37 2019 +0900 @@ -9,10 +9,10 @@ ============ Branch Weight Metadata represents branch weights as its likeliness to be taken -(see :doc:`BlockFrequencyTerminology`). Metadata is assigned to the -``TerminatorInst`` as a ``MDNode`` of the ``MD_prof`` kind. The first operator -is always a ``MDString`` node with the string "branch_weights". Number of -operators depends on the terminator type. +(see :doc:`BlockFrequencyTerminology`). Metadata is assigned to an +``Instruction`` that is a terminator as a ``MDNode`` of the ``MD_prof`` kind. +The first operator is always a ``MDString`` node with the string +"branch_weights". Number of operators depends on the terminator type. Branch weights might be fetch from the profiling file, or generated based on `__builtin_expect`_ instruction.