[llvm-commits] PATCH: Additional convenience methods for ConstantStruct, ConstantArray, and ConstantVector.
Talin
viridia at gmail.com
Thu Feb 17 11:22:45 PST 2011
Ping...can someone please review this?
On Thu, Feb 10, 2011 at 1:40 PM, Talin <viridia at gmail.com> wrote:
> This patch adds a new "get" method to ConstantStruct, ConstantArray and
> ConstantVector. The new method accepts a pair of RandomAccessIterators,
> similar to other LLVM method signatures. This allows constants to be build
> using a small vector or other sequential container type more easily.
>
> In addition, I've also added an END_WITH_NULL variant for
> ConstantStruct::get(). I only added it to ConstantStruct because I figured
> that it would be an uncommon use case for arrays and vectors, whereas the
> creation of small constant structs of predetermined length is fairly common.
>
> --
> -- Talin
>
--
-- Talin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110217/ac244c0f/attachment.html>
More information about the llvm-commits
mailing list