[llvm-commits] [llvm] r132325 - /llvm/trunk/include/llvm/ADT/PackedVector.h

Argyrios Kyrtzidis akyrtzi at gmail.com
Mon May 30 21:43:43 PDT 2011


On May 30, 2011, at 9:38 PM, Chandler Carruth wrote:

> On Mon, May 30, 2011 at 8:53 PM, Argyrios Kyrtzidis <akyrtzi at gmail.com> wrote:
>> Author: akirtzidis
>> Date: Mon May 30 22:53:41 2011
>> New Revision: 132325
>> 
>> URL: http://llvm.org/viewvc/llvm-project?rev=132325&view=rev
>> Log:
>> Introduce PackedVector, useful for storing a vector of values using a specific number of bits for each
>> value. Both signed and unsigned types can be used, e.g
>> 
>>   PackedVector<signed, 2> vec;
>> 
>> will create a vector accepting values -2, -1, 0, 1. Any other value will hit an assertion.
> 
> Any chance we could get unit tests for this? It seems like a really
> good candidate.

Sure, on the TODO list :-)





More information about the llvm-commits mailing list