[all-commits] [llvm/llvm-project] 81300f: [AArch64][PAC] Remove the duplication of LR sign/a...

Anatoly Trosinenko via All-commits all-commits at lists.llvm.org
Fri Aug 11 04:42:19 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 81300f75f4da87caff36026b10d40c2391e246d0
      https://github.com/llvm/llvm-project/commit/81300f75f4da87caff36026b10d40c2391e246d0
  Author: Anatoly Trosinenko <atrosinenko at accesssoftek.com>
  Date:   2023-08-11 (Fri, 11 Aug 2023)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
    M llvm/lib/Target/AArch64/AArch64FrameLowering.h
    M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
    M llvm/lib/Target/AArch64/AArch64InstrInfo.h
    M llvm/test/CodeGen/AArch64/machine-outliner-retaddr-sign-sp-mod.mir

  Log Message:
  -----------
  [AArch64][PAC] Remove the duplication of LR sign/auth implementations

In the machine outliner implementation for AArch64, `signOutlinedFunction()`
reimplements signing the LR value in prologue and authenticating it in
epilogue of the outlined function. This patch factors out `signLR()` and
`authenticateLR()` functions from AArch64FrameLowering code and reuses
them in `signOutlinedFunction()`.

The `mergeOutliningCandidateAttributes()` outliner callback is
introduced as well to further unify signing and authentication of the LR
value.

Reviewed By: tmatheson

Differential Revision: https://reviews.llvm.org/D157320




More information about the All-commits mailing list