[PATCH] Convert some signatures of SelectionDAG::getNode() to use ArrayRef instead of Ops/NumOps

Craig Topper craig.topper at gmail.com
Fri Apr 18 09:01:37 PDT 2014


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.

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.

-- 
~Craig
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140418/f60a5cc9/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getnode.patch
Type: application/octet-stream
Size: 177023 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140418/f60a5cc9/attachment.obj>


More information about the llvm-commits mailing list