[LLVMdev] extractvalue and insertvalue on vector types

Andrew Booker andrew.booker at arm.com
Thu Dec 15 07:49:22 PST 2011


Duncan Sands wrote on 2011-12-14:

> correct, extractvalue doesn't work on vectors, you need to use to
> use extractelement for them.

Thanks for the clarification. I see that the language reference has
already been updated to say that only arrays and structs are
aggregate types, and that vectors aren't.

I wonder whether it's also worth an explicit note in the documentation
for extractvalue, in the section where it lists the differences
between extractvalue indexing and getelementptr indexing? Perhaps
adding a new bullet point that simply says "Indexing into vectors is
not allowed".

Andrew









More information about the llvm-dev mailing list