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

Momchil Velikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 11 04:58:59 PDT 2020


chill updated this revision to Diff 284664.
chill marked an inline comment as done.
chill added a comment.

Well, it wasn't completely broken, just a little bit :D

We have virtual register that keeps LR, I would like for that vreg to keep the stripped version of LR, but
couldn't figure out how to get the proper place to insert the clearing insn, so instead there's a one clearing insn
per `__builtin_fucntion_address` "invocation".


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84502/new/

https://reviews.llvm.org/D84502

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84502.284664.patch
Type: text/x-patch
Size: 9741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200811/cb965017/attachment.bin>


More information about the llvm-commits mailing list