[clang] [compiler-rt] [llvm] [InstrFDO][TypeProf] Implement binary instrumentation and profile read/write (PR #66825)

Snehasish Kumar via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 4 21:57:04 PST 2024


================
@@ -490,6 +591,23 @@ Error InstrProfSymtab::addFuncWithName(Function &F, StringRef PGOFuncName) {
   return Error::success();
 }
 
+uint64_t InstrProfSymtab::getVTableHashFromAddress(uint64_t Address) {
+  finalizeSymtab();
+  auto It = lower_bound(
+      VTableAddrRangeToMD5Map, Address,
----------------
snehasish wrote:

Perhaps consider using llvm::IntervalMap instead. 

https://github.com/llvm/llvm-project/pull/66825


More information about the llvm-commits mailing list