[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)
commit8a26be0cfd5f0e668290ad7e78e7700cff111d89
tree50aeda44e8aea2b026ab5186a8e46d24d8eb01ca
parent04c501607eb024a66f6d21c79fe88f5ef3642b83
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371868 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64CallLowering.cpp
test/CodeGen/AArch64/GlobalISel/call-translator-tail-call.ll