[LLVMdev] byval in a world without pointee types
chandlerc at google.com
Mon Mar 9 17:55:22 PDT 2015
On Mon, Mar 9, 2015 at 1:23 PM, Reid Kleckner <rnk at google.com> wrote:
> then IMO we should keep them on allocas and globals. It keeps the IR human
>> & what of byval, then? Do you agree with Chandler's argument from analogy
>> between byval, alloca, and globals?
>> (oh, and I should look at inalloca a bit too - it looks like it uses the getByValTypeAlignment
>> too... )
> byval and inalloca are edge cases where we can afford to sacrifice some
So, inalloca, maybe.
But I don't see why byval is more or less relevant than anything else here.
If it makes sense to keep the type is a convenience for readabie IR and
such in 'alloca' (and I agree that it does), I feel like it makes sense for
byval as well.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev