<div class="gmail_extra"><div class="gmail_quote">On Thu, Aug 9, 2012 at 2:29 PM, Chad Rosier <span dir="ltr"><<a href="mailto:mcrosier@apple.com" target="_blank">mcrosier@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div style="word-wrap:break-word"><br><div><div><div>On Aug 9, 2012, at 2:25 PM, Chandler Carruth wrote:</div><br><blockquote type="cite">Why two bits? Couldn't we say that there are two dialects, the default is ATT, and there is a bit to select the intel dialect?</blockquote>

<div><br></div></div><div>I'm fine with that approach.</div><div><br><blockquote type="cite"><div>Do you expect us to ever need to have the IR model more dialects?</div></blockquote><div><br></div></div><div>
I don't expect it, but it's not out of the realm of possibilities.</div></div></div></blockquote><div><br></div><div>Ok, not sure how much future-proofing you want to do here...</div><div><br></div><div>If we're going to want more than 2 dialects, I would have the one bit say "non-standard dialect" and store which dialect in a side structure that can be omitted in most cases.</div>

<div><br></div><div>I suspect that this would be a graceful progression though:</div><div><br></div><div>Today: 1 bit, if it is set, "other" dialect is used. No need for side datastructure if the other dialect happens to be the Intel dialect. So we don't even include the side data structure.</div>

<div><br></div><div>Future: We add the side datastructure, and if there is no further information there, assume Intel.</div><div><br></div><div><br></div><div>The patches LGTM with the changes discussed. Comment appropriately the single-bit flag semantics of course. ;]</div>
<div><br></div><div>Could you test (and implement) both ATT and Intel dialect setting in Clang?</div></div></div>