[AArch64][GlobalISel] Add support for sibcalling callees with varargs
authorJessica Paquette <jpaquette@apple.com>
Fri, 13 Sep 2019 16:10:19 +0000 (16:10 +0000)
committerJessica Paquette <jpaquette@apple.com>
Fri, 13 Sep 2019 16:10:19 +0000 (16:10 +0000)
commit14bfb56b1aea586f489aaa71af13bf742873de46
treefc8acd28221a49685c0c45eba54dabc66b632491
parent2a573784f3679a7abab921018eb1c585dce8e669
[AArch64][GlobalISel] Add support for sibcalling callees with varargs

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.

Differential Revision: https://reviews.llvm.org/D67518

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