[llvm] [ProfileData] Add a variant of getValueProfDataFromInst (PR #95993)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 18 16:24:29 PDT 2024
================
@@ -294,6 +294,13 @@ getValueProfDataFromInst(const Instruction &Inst, InstrProfValueKind ValueKind,
uint32_t MaxNumValueData, uint32_t &ActualNumValueData,
uint64_t &TotalC, bool GetNoICPValue = false);
+/// Extract the value profile data from \p Inst and returns them if \p Inst is
+/// annotated with value profile data. Returns an empty vector otherwise.
+std::vector<InstrProfValueData>
----------------
ellishg wrote:
Does it make sense to use `SmallVector` instead of `std::vector` in this patch?
https://github.com/llvm/llvm-project/pull/95993
More information about the llvm-commits
mailing list