[PATCH] D124857: [AIX][PGO] Enable linux style PGO on AIX
wael yehia via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue May 3 08:27:55 PDT 2022
w2yehia created this revision.
w2yehia added reviewers: daltenty, hubert.reinterpretcast, jsji.
Herald added subscribers: abrachet, wenlei, phosek, hiraditya, fedor.sergeev, krytarowski.
Herald added a project: All.
w2yehia requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay.
Herald added a project: LLVM.
This patch switches the PGO implementation on AIX from using the runtime registration-based section tracking to the `__start_SECNAME`/`__stop_SECNAME` based.
In order to enable the recognition of `__start_SECNAME`/`__stop_SECNAME` symbols in the AIX linker, the `-bdbg:namedsects:ss` needs to be used.
https://reviews.llvm.org/D124857
Files:
clang/lib/Driver/ToolChains/AIX.cpp
clang/test/Driver/aix-ld.c
compiler-rt/lib/profile/InstrProfilingPlatformLinux.c
compiler-rt/lib/profile/InstrProfilingPlatformOther.c
llvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
llvm/test/Instrumentation/InstrProfiling/platform.ll
llvm/test/Instrumentation/InstrProfiling/profiling.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124857.426723.patch
Type: text/x-patch
Size: 5866 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220503/9d3c04d9/attachment.bin>
More information about the llvm-commits
mailing list