[LLVMdev] PROPOSAL : Introduce NamedMetadata

Chris Lattner clattner at apple.com
Tue Jul 28 16:04:32 PDT 2009


On Jul 27, 2009, at 4:08 PM, Dan Gohman wrote:

>> @llvm.dbg.gvs = ![ !2 ]
>
> I talked with Devang about this and we came up with this syntax:
>
> !llvm.dbg.gvs = { !2 }
>
> which is nicely analogous with the syntax for named vs. unnamed  
> values,
> and with having NamedMetadata inherit directly from Value, rather than
> from GlobalValue, since the only thing it needs is a name, not all
> the other stuff from User + Constant + GlobalValue.

This is a great idea.

-Chris



More information about the llvm-dev mailing list