<div dir="ltr">+Justin and Briana, they wanted attributes on GlobalVariables recently for GPU textures.<div><br></div><div><div class="gmail_extra"><div class="gmail_quote">On Tue, Mar 14, 2017 at 1:02 PM, James Molloy <span dir="ltr"><<a href="mailto:james@jamesmolloy.co.uk" target="_blank">james@jamesmolloy.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Reid,<div><br></div><div>Unfortunately yes, it is.</div></div></blockquote><div><br></div><div>OK.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><span class="gmail-"><div>> <span style="color:rgb(33,33,33)">If we do go with approach 3, I'd recommend adding a single metadata attachment that controls all sections a global could possibly live in (text, data, rdata, bss).</span></div><div><span style="color:rgb(33,33,33)"><br></span></div></span><div><span style="color:rgb(33,33,33)">I agree with this, although I think using metadata here wouldn't be right - don't we need to use attributes when dropping metadata would cause miscompiles?</span></div></div></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><span style="color:rgb(33,33,33)">I was considering adding an attributeset to global variables, so we'd have something like:</span></div></div></blockquote><div><br></div><div>We could definitely add AttributeSets to GlobalValue. I'd support that. It also achieves the optimization goal of not having three attachments for every global.</div></div></div></div></div>