[LLVMdev] alloc_size metadata

Eric Christopher echristo at apple.com
Mon Jun 4 11:24:17 PDT 2012


On Jun 4, 2012, at 11:23 AM, Nuno Lopes <nunoplopes at sapo.pt> wrote:

> Quoting Eric Christopher <echristo at apple.com>:
> 
>> On Jun 4, 2012, at 10:37 AM, Nuno Lopes <nunoplopes at sapo.pt> wrote:
>> 
>>> So here is a new proposal:
>>> 
>>> !0 = metadata !{ alloc_siz_fn, offset_fn, parameters* }
>> 
>> The parameters are a separate metadata array or the alloc_size metadata
>> is variable length?
> 
> Variable length. I think that's the simplest solution, and the additional overhead of a separate array is probably not worth it.
> 

Fair enough. I'd probably go the other way, but it's not a big deal.

-eric




More information about the llvm-dev mailing list