[llvm] [AArch64] Fix return address auth in tail call epilogues (PR #189484)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 3 11:42:26 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- llvm/lib/Target/AArch64/AArch64FrameLowering.h llvm/lib/Target/AArch64/AArch64PointerAuth.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/lib/Target/AArch64/AArch64PointerAuth.cpp b/llvm/lib/Target/AArch64/AArch64PointerAuth.cpp
index 7eda18f2e..747c1243f 100644
--- a/llvm/lib/Target/AArch64/AArch64PointerAuth.cpp
+++ b/llvm/lib/Target/AArch64/AArch64PointerAuth.cpp
@@ -64,8 +64,7 @@ char AArch64PointerAuthLegacy::ID = 0;
static void emitPACSymOffsetIntoReg(const TargetInstrInfo &TII,
MachineBasicBlock &MBB,
MachineBasicBlock::iterator I, DebugLoc DL,
- MCSymbol *PACSym,
- Register Reg) {
+ MCSymbol *PACSym, Register Reg) {
BuildMI(MBB, I, DL, TII.get(AArch64::ADRP), Reg)
.addSym(PACSym, AArch64II::MO_PAGE)
.setMIFlag(MachineInstr::FrameDestroy);
@@ -220,7 +219,8 @@ void AArch64PointerAuthImpl::authenticateLR(
// The PACM hint-space instruction modifies the following AUTI[AB]1716
// to optionally take x15 as an extra operand depending on the
// presence of +pauth-lr at runtime. On machines without +pauth-lr, it
- // behaves as a nop, and the address of the PACI[AB]SP in x15 is ignored.
+ // behaves as a nop, and the address of the PACI[AB]SP in x15 is
+ // ignored.
BuildMI(MBB, MBBI, DL, TII->get(AArch64::PACM))
.setMIFlag(MachineInstr::FrameDestroy);
``````````
</details>
https://github.com/llvm/llvm-project/pull/189484
More information about the llvm-commits
mailing list