<div dir="ltr"><div>If what you are saying is that you know the array of i32 will always be 10 entries, make the function use a constant limit=10 to the loop.<br></div>I.e Make the loop limit a constant and not a variable.<br>
<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 October 2013 18:27, Matthieu Dubet <span dir="ltr"><<a href="mailto:maattdd@gmail.com" target="_blank">maattdd@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi,<br><br>I'm creating a small function in LLVM which gets as a parameter an i32* (this function is called from C code) .<br>
<br>However I know that this pointer is actually a C array of size 10 ( int[10] ).<br>
<br>How can I tell LLVM to consider this i32* as an <10 x i32> (and thus get the performance improvements thanks to SIMD ..etc..) ?<br><br>Thanks,<br>Matthieu<br></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br></div>