<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Feb 19, 2015 at 10:57 AM, David Blaikie <span dir="ltr"><<a href="mailto:dblaikie@gmail.com" target="_blank">dblaikie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Thu, Feb 19, 2015 at 8:31 AM, Rafael Espíndola <span dir="ltr"><<a href="mailto:rafael.espindola@gmail.com" target="_blank">rafael.espindola@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Long term I would love to remove byval and sret. With inalloca the<br>
outgoing frame is explicit a the IR and we just have loads and stores.<br>
<br>
A short term idea would be to add just the size to the byval. That<br>
should be sufficient, no?</blockquote></span></div></div></div></blockquote><div><br></div><div>I like this idea!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>I was going to agree - but poking around, it looks like we need alignment too, at least (not sure if we need other things beyond size & alignment, nothing springs to mind but I don't know much about this stuff) - TargetLoweringBase::getByValTypeAlignment/DataLayout::getABITypeAlignment<br></div></div></div></div></blockquote><div><br></div><div>Nope, we don't, we have an align attribute. =D </div></div></div></div>