[all-commits] [llvm/llvm-project] 3bae53: [AArch64][PAC] Rework the expansion of AUT/AUTPAC ...

Anatoly Trosinenko via All-commits all-commits at lists.llvm.org
Tue Apr 14 08:40:16 PDT 2026


  Branch: refs/heads/users/atrosinenko/pauth-refactor-autpac
  Home:   https://github.com/llvm/llvm-project
  Commit: 3bae53f3a30fec6eae23fda447708b81346ca8ae
      https://github.com/llvm/llvm-project/commit/3bae53f3a30fec6eae23fda447708b81346ca8ae
  Author: Anatoly Trosinenko <atrosinenko at accesssoftek.com>
  Date:   2026-04-14 (Tue, 14 Apr 2026)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
    M llvm/test/CodeGen/AArch64/ptrauth-intrinsic-auth-resign-with-blend.ll

  Log Message:
  -----------
  [AArch64][PAC] Rework the expansion of AUT/AUTPAC pseudos

Refactor `AArch64AsmPrinter::emitPtrauthAuthResign` to improve
readability and fix the conditions when `emitPtrauthDiscriminator` is
allowed to clobber AddrDisc.

* do not clobber `AUTAddrDisc` when computing `AUTDiscReg` on resigning
  if `AUTAddrDisc == PACAddrDisc`, as it would prevent passing raw,
  64-bit value as the new discriminator
* move the code computing `ShouldCheck` and `ShouldTrap` conditions to a
  separate function


  Commit: 0320c7b7ff38f6d9463a85bb49ab0e245663d4ce
      https://github.com/llvm/llvm-project/commit/0320c7b7ff38f6d9463a85bb49ab0e245663d4ce
  Author: Anatoly Trosinenko <atrosinenko at accesssoftek.com>
  Date:   2026-04-14 (Tue, 14 Apr 2026)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp

  Log Message:
  -----------
  Improve readability


Compare: https://github.com/llvm/llvm-project/compare/5cd1e3910c2e...0320c7b7ff38

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list