This patch changes the interface for createPGOFuncNameMetadata() where we add another PGOFuncName argument. This is needed because clang instrumentation and IR instrumentation use slight different prefix in PGOFuncName if the source file name containing directories:
(1) clang instrumentation strips out all the directories.
(2) IR instrumentation keeps the directories path.
To accommodate both usage, we need to have this extra argument.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
lgtm
lib/Transforms/Instrumentation/PGOInstrumentation.cpp | ||
---|---|---|
735 ↗ | (On Diff #54709) | I suggest changing FuncInfo.FuncName to FuncInfo.PGOFuncName for clarity, but that can be done later. |