[cfe-dev] var-arg handling

Eli Friedman eli.friedman at gmail.com
Tue Aug 13 14:41:28 PDT 2013


On Tue, Aug 13, 2013 at 3:28 AM, Robert Lytton <robert at xmos.com> wrote:

>  Hi,
>
> Currently the XCore target passes the va_arg IR instruction to the
> back-end to handle
> - using the default DefaultABIInfo.
> However, this does mean that aggregate types are not handled.
>
> I assume to support aggregate types, I must lower them within clang.
> The question is should I:
>     1. lower all types;
>     2.  just the aggregate types, passing all other types as var_arg
> instructions.
>
> On the surface, lowering all types does seem to allow better optimization
> - but may be this points to lack else where.
>
>
I would suggest lowering all types for consistency; other targets generally
do the same thing.

-Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130813/71e98937/attachment.html>


More information about the cfe-dev mailing list