[llvm-commits] PATCH: Additional convenience methods for ConstantStruct, ConstantArray, and ConstantVector.

Talin viridia at gmail.com
Thu Feb 10 13:40:20 PST 2011


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110210/1a402d23/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ConstantStruct.patch
Type: text/x-patch
Size: 3350 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110210/1a402d23/attachment.bin>


More information about the llvm-commits mailing list