[llvm-branch-commits] [llvm] [BOLT] Add pseudo probe inline tree to YAML profile (PR #107137)
Lei Wang via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Sep 11 17:35:42 PDT 2024
================
@@ -158,15 +164,35 @@ template <> struct MappingTraits<bolt::BinaryBasicBlockProfile> {
std::vector<bolt::CallSiteInfo>());
YamlIO.mapOptional("succ", BBP.Successors,
std::vector<bolt::SuccessorInfo>());
- YamlIO.mapOptional("pseudo_probes", BBP.PseudoProbes,
+ YamlIO.mapOptional("probes", BBP.PseudoProbes,
std::vector<bolt::PseudoProbeInfo>());
}
};
+namespace bolt {
+struct InlineTreeInfo {
+ uint32_t ParentIndexDelta;
+ uint32_t CallSiteProbe;
+ // Index in PseudoProbeDesc.GUID + 1, 0 for same as previous
+ uint32_t GUIDIndex;
----------------
wlei-llvm wrote:
Is it possible to use `optional` to represent the value that is same as previous?
https://github.com/llvm/llvm-project/pull/107137
More information about the llvm-branch-commits
mailing list