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

Anatoly Trosinenko via All-commits all-commits at lists.llvm.org
Wed Nov 26 11:13:45 PST 2025


  Branch: refs/heads/users/atrosinenko/pauth-refactor-autpac
  Home:   https://github.com/llvm/llvm-project
  Commit: 19d2b2cc483176a207190213a45e9f6342853067
      https://github.com/llvm/llvm-project/commit/19d2b2cc483176a207190213a45e9f6342853067
  Author: Anatoly Trosinenko <atrosinenko at accesssoftek.com>
  Date:   2025-11-26 (Wed, 26 Nov 2025)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
    M llvm/lib/Target/AArch64/AArch64InstrInfo.td
    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 of `emitPtrauthDiscriminator` being
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
* mark the `$Scratch` operand of `AUTxMxN` as early-clobber (fixes
  assertions when emitting code at `-O0`)
* move the code computing `ShouldCheck` and `ShouldTrap` conditions to a
  separate function
* define helper `struct PtrAuthSchema` to pass arguments to
  `emitPtrauthAuthResign` in a better structured way



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