[llvm-dev] RFC: metadata attachments for global variables
Philip Reames via llvm-dev
llvm-dev at lists.llvm.org
Fri May 6 14:23:24 PDT 2016
+1. I've seen a couple of cases where metadata on a global would be
useful as an optimization hint as well.
On 05/06/2016 01:17 PM, Peter Collingbourne via llvm-dev wrote:
> Hi all,
> I'd like to add support for metadata attachments for global variables
> in the same way as we did for functions.
> Syntax would be pretty simple:
> @foo = global i32 0, !foo !0, !bar !1
> (the extra commas are required to disambiguate from a named metadata
> on the next line)
> 1) Lets us reverse the DIGlobalVariable -> GlobalVariable edge, which
> should hopefully clear the way for removing the llvm.dbg.cu
> <http://llvm.dbg.cu> named metadata node.
> 2) Allows for bitset metadata to be attached to globals rather than
> being represented as a named metadata node. This means that bitset
> metadata is naturally dropped when globals are dropped, and makes it
> easier to manipulate bitset metadata and build summaries of bitset
> Comments appreciated.
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev