[clang] [llvm] [InstrProf] Remove PGO name reading and writing (PR #214134)

Teresa Johnson via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 14 16:46:10 PDT 2026


================
@@ -245,33 +245,34 @@ LLVM_ABI std::string
 getPGOFuncName(StringRef RawFuncName, GlobalValue::LinkageTypes Linkage,
                StringRef FileName, uint64_t Version = INSTR_PROF_INDEX_VERSION);
 
-/// \return the modified name for function \c F suitable to be
+/// \return the modified name for global object \c GO suitable to be
 /// used as the key for IRPGO profile lookup. \c InLTO indicates if this is
 /// called from LTO optimization passes.
-LLVM_ABI std::string getIRPGOFuncName(const Function &F, bool InLTO = false);
+LLVM_ABI std::string getIRPGOObjectName(const GlobalObject &GO,
----------------
teresajohnson wrote:

Nevermind, I see that this PR is essentially centralizing what used to be separate handling into this one function, and dropping some other copies elsewhere. So the rename makes sense in this PR

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


More information about the cfe-commits mailing list