[PATCH] D111780: [AArch64] Emit .cfi_negate_ra_state for PAC-auth instructions.

Daniel Kiss via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 14 01:13:30 PDT 2021


danielkiss created this revision.
danielkiss added reviewers: pbarrio, tamas.petz, momchil.velikov, nickdesaulniers, srhines, LukeCheeseman, olista01.
Herald added subscribers: hiraditya, kristof.beyls.
danielkiss requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

autiasp, autibsp instructions are the counterpart of paciasp/pacibsp instructions
therefore let's emit .cfi_negate_ra_state for these too.
In case of Armv8.3 instruction set the retaa/retbb will do the return and authentication
in one step here we can't emit the . cfi_negate_ra_state because that would be point after
the ret* instruction.


https://reviews.llvm.org/D111780

Files:
  llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
  llvm/test/CodeGen/AArch64/sign-return-address.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111780.379620.patch
Type: text/x-patch
Size: 8125 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211014/94679187/attachment.bin>


More information about the llvm-commits mailing list