[compiler-rt] [llvm] [InstrProf] Add vtables with type metadata into symtab (PR #81051)

David Li via llvm-commits llvm-commits at lists.llvm.org
Wed May 8 11:32:59 PDT 2024


================
@@ -494,6 +498,14 @@ class InstrProfSymtab {
   // - In MD5FuncMap: <MD5Hash(name), &F> for name in name-set
   Error addFuncWithName(Function &F, StringRef PGOFuncName);
 
+  // Add the vtable into the symbol table, by creating the following
+  // map entries:
+  // name-set = {PGOName} + {getCanonicalName(PGOName)} if the canonical name
----------------
david-xl wrote:

+ --> Union

'if ...is different ' can be removed because it is implied by union operation.

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


More information about the llvm-commits mailing list