<div dir="ltr"><br><br><div class="gmail_quote">On Sun, Oct 5, 2008 at 11:25 PM, Chris Lattner <span dir="ltr"><<a href="mailto:sabre@nondot.org">sabre@nondot.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Not entirely good and not entirely bad.  :)  It depends on how many identifiers you're talking about here.  Currently, the tradeoff is that the identifiers need to be populated when the compiler starts up, so the more identifiers with magic stuff hanging off them, the more that needs to be set up at startup-time.<br>

<br>
I supposed the best way to solve this is the push into the "first instance of an identifier" codepath.  It would be reasonable and nice to do a quick hash lookup from a static hash table to see if the new identifier is "known".  If so, the new identifierinfo would be populated with info from that table.<br>

<br>
Does that make sense?<br><font color="#888888">
</font></blockquote><div><br>Yes. In my opinion this is an argument for centralizing the mechanism so we can perform such optimizations more easily (if necessary). In the end there should be significantly less "known" IDs than X86 builtins. :)<br>
<br> - Daniel<br></div></div><br></div>