[clang] [llvm] [PowerPC] Support -fpatchable-function-entry (PR #92997)
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Fri May 24 02:57:45 PDT 2024
================
@@ -6681,7 +6681,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
StringRef S0 = A->getValue(), S = S0;
unsigned Size, Offset = 0;
if (!Triple.isAArch64() && !Triple.isLoongArch() && !Triple.isRISCV() &&
- !Triple.isX86())
+ !Triple.isX86() &&
+ !(!Triple.isOSAIX() && (Triple.getArch() == llvm::Triple::ppc ||
----------------
chenzheng1030 wrote:
Linux little endian targets are this patch's scope. This patch tries to support -fpatchable-function-entry for big endian targets but not AIX.
If we are going to support little endian, we first need to check the possibility about removal of XRAY. (XRAY also uses backend node `PATCHABLE_FUNCTION_ENTER`)
https://github.com/llvm/llvm-project/pull/92997
More information about the llvm-commits
mailing list