byval in a world without pointee types

Reid Kleckner rnk at google.com
Thu Feb 19 11:32:08 PST 2015


On Thu, Feb 19, 2015 at 10:57 AM, David Blaikie <dblaikie at gmail.com> wrote:

>
>
> On Thu, Feb 19, 2015 at 8:31 AM, Rafael EspĂ­ndola <
> rafael.espindola at gmail.com> wrote:
>
>> Long term I would love to remove byval and sret. With inalloca the
>> outgoing frame is explicit a the IR and we just have loads and stores.
>>
>> A short term idea would be to add just the size to the byval. That
>> should be sufficient, no?
>
>
I like this idea!


> 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
>

Nope, we don't, we have an align attribute. =D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150219/c2e8f086/attachment.html>


More information about the llvm-commits mailing list