[PATCH] D124857: [AIX][PGO] Enable linux style PGO on AIX

wael yehia via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 4 06:01:49 PDT 2022


w2yehia added inline comments.


================
Comment at: compiler-rt/lib/profile/InstrProfilingPlatformLinux.c:235
+// Empty stubs to allow linking object files using the registration-based scheme
+COMPILER_RT_VISIBILITY
+void __llvm_profile_register_function(void *Data_) {}
----------------
davidxl wrote:
> Why is this needed? For objects compiled with older compiler?
> For objects compiled with older compiler?

Yes. On AIX, we would like to allow old object files to be linkable (and function correctly) with the new compiler. On AIX, old object files really mean object files compiled with LLVM 13.0 or newer.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124857/new/

https://reviews.llvm.org/D124857



More information about the llvm-commits mailing list