<div dir="ltr">Oh, got it.  It's hard to tell from the diff context.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 18, 2014 at 12:02 PM, Craig Topper <span dir="ltr"><<a href="mailto:craig.topper@gmail.com" target="_blank">craig.topper@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">My intention was to drop them. The only ones that I intentionally left were cases where there was a C array that was being used in a weird way. For instance, there were several places where a possibly null SDValue was in the last entry and the size passed to getNode was then conditional on whether that was null.<div>

<br></div><div>Do you see some in the patch that I missed?</div></div><div class="gmail_extra"><div><div class="h5"><br><br><div class="gmail_quote">On Fri, Apr 18, 2014 at 11:39 AM, Reid Kleckner <span dir="ltr"><<a href="mailto:rnk@google.com" target="_blank">rnk@google.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Cool!  I think you can drop a lot of explicit conversions of C arrays, since ArrayRef has this ctor:<div>

<div><div>    template <size_t N></div><div>    /*implicit*/ LLVM_CONSTEXPR ArrayRef(const T (&Arr)[N])</div>
<div>      : Data(Arr), Length(N) {}</div></div><div><br></div><div>Right?  If not, what's breaking?</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Fri, Apr 18, 2014 at 9:01 AM, Craig Topper <span dir="ltr"><<a href="mailto:craig.topper@gmail.com" target="_blank">craig.topper@gmail.com</a>></span> wrote:<br>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Several of the signatures of getNode take an SDValue* and a NumOps argument. This results in most callers having to explicitly call .size() or hardcoding the size of a statically sized array. This patch converts the methods to take an ArrayRef so this will now happen automatically. I explicitly created ArrayRefs for the cases where this wouldn't work or wasn't obvious to me that it would.<div>



<br></div><div>Submitting to the list before I commit since this touches a many files and locations within them and I've already had to merge a couple times.<span><font color="#888888"><br><div><div><br>
</div>-- <br>~Craig
</div></font></span></div></div>
<br></div></div>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu" target="_blank">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>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span class="HOEnZb"><font color="#888888">-- <br>~Craig
</font></span></div>
</blockquote></div><br></div>