[LLVMdev] [RFC] Attributes on Values

Reid Kleckner rnk at google.com
Tue Sep 9 20:35:36 PDT 2014


On Tue, Sep 9, 2014 at 8:22 PM, Philip Reames <listmail at philipreames.com>
wrote:

> To address the size question asked in a followup, I'll respond somewhat
> glibly.  We already have metadata on a Value, how is having Attributes in
> their place any different?  (This is assuming we completely merge metadata
> and attributes.  No one has seriously proposed doing that yet.
> Alternatively, we could merge the storage and preserve the interface
> separation if we thought that was useful.)


Attributes and metadata aren't completely interchangeable. Metadata is
semantically unimportant and can always be dropped (TBAA, debug info,
stuff). Attributes can control semantically important things like how to
pass a parameter, and can't necessarily be dropped.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140909/d91cff0c/attachment.html>


More information about the llvm-dev mailing list