[LLVMdev] LLVMdev Digest, Vol 80, Issue 13
David A. Greene
greened at obbligato.org
Tue Feb 15 08:38:56 PST 2011
Andrew Clinton <andrew at sidefx.com> writes:
> Agreed, I too was wondering why we need both arrays and vectors. It
> goes against the grain, I think, of the structure typing system used by
> LLVM. For example, a vector of 4 floats and an array of 4 floats are
> structurally the same type. Would it be feasible in the future to
> consolidate the two types by allowing "vector" operations (add,
> multiply, etc.) on arrays where it makes sense, and doing away with the
> specialized vector types?
Actually, I do not believe an array of 4 floats and a vector of 4 floats
are the same. There are various bit packing and alignment semantics
that differ.
-Dave
More information about the llvm-dev
mailing list