[LLVMdev] Converting a i32 pointer to a vector of i32 ( C array to LLVM vector)

Matthieu Dubet maattdd at gmail.com
Fri Oct 11 10:27:11 PDT 2013


Hi,

I'm creating a small function in LLVM which gets as a parameter an i32*
(this function is called from C code) .

However I know that this pointer is actually a C array of size 10 ( int[10]
).

How can I tell LLVM to consider this i32* as an <10 x i32> (and thus get
the performance improvements thanks to SIMD ..etc..) ?

Thanks,
Matthieu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131011/0469d551/attachment.html>


More information about the llvm-dev mailing list