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

Teresa Johnson via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 2 09:58:07 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:

Is the name change reflecting a behavior change from this PR? If not, can that be split out into a follow on pr so that this one is just about the metadata removal?

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


More information about the cfe-commits mailing list