aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorMicah Weston <micahsweston@gmail.com>2023-12-12 10:23:16 -0500
committerGitHub <noreply@github.com>2023-12-12 10:23:16 -0500
commit105adf2cd9588b4839fbdc7287bb76a962fdb8ca (patch)
tree97b61f42c2cbb7cfab57545ba350362be932378d /llvm/lib/Transforms/Utils/Local.cpp
parentef35da825f38a86e4621c13a2898d561da88991c (diff)
downloadllvm-105adf2cd9588b4839fbdc7287bb76a962fdb8ca.zip
llvm-105adf2cd9588b4839fbdc7287bb76a962fdb8ca.tar.gz
llvm-105adf2cd9588b4839fbdc7287bb76a962fdb8ca.tar.bz2
[SHT_LLVM_BB_ADDR_MAP] Implements PGOAnalysisMap in Object and ObjectYAML with tests.
Reviewed in PR (#71750). A part of [RFC - PGO Accuracy Metrics: Emitting and Evaluating Branch and Block Analysis](https://discourse.llvm.org/t/rfc-pgo-accuracy-metrics-emitting-and-evaluating-branch-and-block-analysis/73902). This PR adds the PGOAnalysisMap data structure and implements encoding and decoding through Object and ObjectYAML along with associated tests. When emitted into the bb-addr-map section, each function is followed by the associated pgo-analysis-map for that function. The emitting of each analysis in the map is controlled by a bit in the bb-addr-map feature byte. All existing bb-addr-map code can ignore the pgo-analysis-map if the caller does not request the data.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions