<div dir="ltr">Thanks so much for making this happen. I have written many, many clang test cases with convoluted FileCheck regexes that match "label:" and "; :<numbered label>" so they pass with and without NDEBUG.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Feb 22, 2019 at 7:34 AM James Y Knight via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>After watching a few different people get confused about nameless blocks in llvm IR, and recalling my own confusion a few years ago, I'd like to change the syntax slightly to make it a bit clearer.</div><div><br></div><div dir="ltr">This is similar to the change made for instruction names in <a href="https://llvm.org/" target="_blank">https://llvm.org/</a><span style="color:rgb(0,0,0);font-family:"Segoe UI","Segoe UI Emoji","Segoe UI Symbol",Lato,"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:13px">PR2480 a decade ago.</span></div><div dir="ltr"><br></div><div>Two changes:</div><div>1. Change the parsing of a numeric block label to parse as a value number rather than a string.</div><div>2. When printing blocks, always print the value number as a proper label, except for the initial block.</div><div dir="ltr"><div><br>See proposed change in <a href="https://reviews.llvm.org/D58548" target="_blank">https://reviews.llvm.org/D58548</a></div><div><br></div></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>