<div dir="ltr">On Tue, Aug 13, 2013 at 3:28 AM, Robert Lytton <span dir="ltr"><<a href="mailto:robert@xmos.com" target="_blank">robert@xmos.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hi,<br>
<br>
Currently the XCore target passes the va_arg IR instruction to the back-end to handle<br>
- using the default DefaultABIInfo.<br>
However, this does mean that aggregate types are not handled.<br>
<br>
I assume to support aggregate types, I must lower them within clang.<br>
The question is should I:<br>
1. lower all types;<br>
2. just the aggregate types, passing all other types as var_arg instructions.<br>
<br>
On the surface, lowering all types does seem to allow better optimization - but may be this points to lack else where.<br>
</div></div><div style="direction:ltr;font-size:10pt;font-family:Tahoma"><br></div></blockquote><div><br></div><div>I would suggest lowering all types for consistency; other targets generally do the same thing.</div><div>
<br></div><div>-Eli</div></div></div></div>