[PATCH] D84502: [AArch64][GlobalISel] Implement __builtin_return_address for PAC-RET

Momchil Velikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 24 02:42:48 PDT 2020


chill created this revision.
chill added reviewers: aemerson, sammccall, t.p.northover.
Herald added subscribers: llvm-commits, danielkiss, hiraditya, kristof.beyls, rovka.
Herald added a project: LLVM.

This patch implements stripping of the PAC in the return address for GlobalISel.

Implementation for when not using GLobalISel is in https://reviews.llvm.org/D75044
The analogous GCC patch is  https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=a70d5d81c41048556fd86eaa1036018a6bfba115


https://reviews.llvm.org/D84502

Files:
  llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/builtin-return-address-pacret.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84502.280377.patch
Type: text/x-patch
Size: 5497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200724/2aefcf42/attachment.bin>


More information about the llvm-commits mailing list