<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">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>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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 class="HOEnZb"><font color="#888888"><br><div><div><br>
</div>-- <br>~Craig
</div></font></span></div></div>
<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>
<br></blockquote></div><br></div>