<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Nov 19, 2012, at 1:49 PM, Eric Christopher <<a href="mailto:echristo@gmail.com">echristo@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br><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>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><div><br></div><div>-Chris</div><div><br></div></div></body></html>