This patch enables general varargs support for the 64-bit PPC SVR4 ABI.
authorBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 3 Oct 2012 19:18:57 +0000 (19:18 +0000)
committerBill Schmidt <wschmidt@linux.vnet.ibm.com>
Wed, 3 Oct 2012 19:18:57 +0000 (19:18 +0000)
commit2fc107f5652a526d9c2972dc3b386e5d86769e44
treec2bf587367cb6da1c9a8a9aad7e0ac78fd11cb40
parent5b8207358f2bd972edeb28d29062424af38e8239
This patch enables general varargs support for the 64-bit PPC SVR4 ABI.

Most of the pieces for this were already in place, but a proper EmitVAArg
is needed for aggregates and complex numbers to be handled.  Although the
va_list for 64-bit PowerPC SVR4 consists of GPRs 3 through 10 together with
the overflow portion of the parameter save area, we can treat va_list as
pointing to contiguous memory for all parameters, since the back end forces
the parameter GPRs to memory for varargs functions.

There is no need at this time to model parameters and return values beyond
what the DefaultABIInfo provides.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@165143 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/TargetInfo.cpp