<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 31, 2014 at 12:42 PM, Pete Cooper <span dir="ltr"><<a href="mailto:peter_cooper@apple.com" target="_blank">peter_cooper@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 class=""><div>On Jul 31, 2014, at 11:27 AM, Sean Silva <<a href="mailto:chisophugis@gmail.com" target="_blank">chisophugis@gmail.com</a>> wrote:</div>
<br><blockquote type="cite"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jul 31, 2014 at 12:31 AM, Tim Northover <span dir="ltr"><<a href="mailto:t.p.northover@gmail.com" target="_blank">t.p.northover@gmail.com</a>></span> wrote:<br>

<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"><div>> Yeah, exactly those 2 things.  I have them in separate patches, but I think<br>


> we only get the benefit from sized binary literals if we also allow them to<br>
> initialize multiple bits in another bits<n> type.<br>
<br>
</div>It also allows type checking for single initializers. I've been caught<br>
out a couple of times when I thought I'd given 17 digits in "let<br>
Inst{16-0} = 0b1001000111011010" or similar.<br></blockquote><div><br></div><div>Allowing underscores in the literal seems like it would help alleviate this somewhat (do we already allow that?). That is what VHDL does ("Underlines can be used to increase readability and have no impact on the value."). </div>
</div></div></div></blockquote></div>Yeah, _’s sounds like a good idea.  I was going to do that independently of all this other work if there’s no objections.</div><span class="HOEnZb"><font color="#888888"><div><br></div>
</font></span></div></blockquote><div><br></div><div>Go for it. Seems like a no-brainer (remember to update the docs in relevant places; we want people to use this feature!).</div><div><br></div><div>-- Sean Silva</div><div>
<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><span class="HOEnZb"><font color="#888888"><div></div></font></span><div>
<span class="HOEnZb"><font color="#888888">Pete</font></span><div class=""><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">
<div><br></div><div>-- Sean Silva</div><div> </div><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">
<br>
Cheers.<br>
<span><font color="#888888"><br>
Tim.<br>
</font></span><div><div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu/" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br></div></div>
</blockquote></div></div><br></div></blockquote></div><br></div></div>