<div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div><div class="im"><blockquote type="cite">
<div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Querying<br>
--------<br>
<br>
The attributes are attached to the function. It's therefore trivial to access<br>
the attributes within the middle- and the back-ends. Here's an example of how<br>
attributes are queried:<br></blockquote><div><br></div><div>Just had a thought, what about compile options that change alignment/layout/section placement of globals etc? For example the -G <num> option in gcc that the mips guys will want to support some day (there are probably better options but this was the first the came to mind).</div>
</div></div></blockquote><div><br></div></div><div>All of those can be directly represented in LLVM IR today, but if there were a good reason to, I can see extending attributes to work on globals someday.</div><span class="HOEnZb"><font color="#888888"><div>
<br></div></font></span></div></div></blockquote><div><br></div><div>Right, I couldn't think of anything that wasn't handled already, but I wasn't sure if we wanted this to be a single way of encapsulating information for globals. No opinion either way :)</div>
<div><br></div><div>-eric</div><div> </div></div></div>