OSDN Git Service

[ARM GlobalISel] Allow calls to varargs functions
authorDiana Picus <diana.picus@linaro.org>
Thu, 17 Jan 2019 10:11:55 +0000 (10:11 +0000)
committerDiana Picus <diana.picus@linaro.org>
Thu, 17 Jan 2019 10:11:55 +0000 (10:11 +0000)
commitfd351e4d50809a7152f57a666eb424ae94a9db9a
treefb9d6a2fb2a641e11e65026a8f6d1ccebfa80ff1
parentdfa1709666be4f07d33c1a6ba7f7b5def481f974
[ARM GlobalISel] Allow calls to varargs functions

Allow varargs functions to be called, both in arm and thumb mode. This
boils down to choosing the correct calling convention, which we can
easily test by making sure arm_aapcscc is used instead of
arm_aapcs_vfpcc when the callee is variadic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@351424 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMCallLowering.cpp
test/CodeGen/ARM/GlobalISel/arm-unsupported.ll
test/CodeGen/ARM/GlobalISel/irtranslator-varargs-lowering.ll [new file with mode: 0644]