<div dir="ltr">Oh yeah. +1. Thanks for looking at this.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Dec 29, 2012 at 1:13 PM, Jakob Stoklund Olesen <span dir="ltr"><<a href="mailto:stoklund@2pi.dk" target="_blank">stoklund@2pi.dk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><br>
On Dec 27, 2012, at 3:29 AM, Chandler Carruth <<a href="mailto:chandlerc@gmail.com">chandlerc@gmail.com</a>> wrote:<br>
<br>
> Author: chandlerc<br>
> Date: Thu Dec 27 05:29:17 2012<br>
> New Revision: 171158<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=171158&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=171158&view=rev</a><br>
> Log:<br>
> Provide a common half-open interval map info implementation, and just<br>
> re-use that for SlotIndexes. This way other users who want half-open<br>
> semantics can share the implementation.<br>
<br>
</div>Hi Chandler,<br>
<br>
In retrospect, I think it was a premature abstraction to support closed intervals at all. It wasn't quite clear at the time if SlotIndexes would work better with closed or half-open intervals. That has been settled now, they definitely want half-open intervals.<br>

<br>
It would be perfectly fine to have the default IntervalMapInfo implementation provide half-open semantics. Then we can also get rid of the gross 'a+1' in the adjacent() implementation.<br>
<span class="HOEnZb"><font color="#888888"><br>
/jakob<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</div></div></blockquote></div><br></div>