[LLVMdev] Convert a vector size

Yakov Malinkovich yakovm3 at gmail.com
Fri May 4 12:52:43 PDT 2012


I have a function that should work only with vector types having
element type as a power of 2.

So if I get total 48 bit vector I should force it to be rounded to
total 64 bit vector

Yakov


On Fri, May 4, 2012 at 10:37 PM, Tim Northover <t.p.northover at gmail.com> wrote:
>
> > %temp = shufflevector <3 x i16> %incoming, <3 x i16> undef, <4 x i32>
> > <i32 0, i32 1, i32 2, i32 undef>
> > %out = bitcast <4 x i16> %temp to i64
>
> I seem to have misread the destination type, you'd obviously want "<1
> x i64>" instead of "i64" in everything I've written.
>
> Tim.



More information about the llvm-dev mailing list