[PATCH] D67518: [AArch64][GlobalISel] Add support for sibcalling callees with varargs

Jessica Paquette via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 12 13:41:47 PDT 2019


paquette created this revision.
paquette added a reviewer: aemerson.
Herald added subscribers: Petar.Avramovic, hiraditya, kristof.beyls, rovka.
Herald added a project: LLVM.
paquette added a parent revision: D67471: [AArch64][GlobalISel] Support sibling calls with outgoing arguments.

This adds support for tail calling callees with varargs, equivalent to how it is done in AArch64ISelLowering.

This only works for sibling calls, and does not add the necessary support for musttail with varargs. (See r345641 for equivalent ISelLowering support.) This should be implemented when we stop falling back on musttail.

Update call-translator-tail-call.ll to show that we can now tail call varargs.


https://reviews.llvm.org/D67518

Files:
  llvm/lib/Target/AArch64/AArch64CallLowering.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/call-translator-tail-call.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67518.219991.patch
Type: text/x-patch
Size: 4410 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190912/be467307/attachment.bin>


More information about the llvm-commits mailing list