search for: maattdd

Displaying 7 results from an estimated 7 matches for "maattdd".

2013 Oct 11
4
[LLVMdev] Converting a i32 pointer to a vector of i32 ( C array to LLVM vector)
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
2013 Nov 05
3
[LLVMdev] LLVM IR vectorized with opt but not through the API
Hi, I have a simple LLVM code which loop over an array and do a simple calculation, the bytecode is here : https://gist.github.com/maattd/7322927 This code is correctly vectorized with LLVM opt 3.3, however I can't get it to vectorize with call through the API. Is there a way to debug the LLVM vectorizer pass with the API ? Is there a way to just apply the exact same optimization passes as
2013 Oct 17
0
[LLVMdev] Converting a i32 pointer to a vector of i32 ( C array to LLVM vector)
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. I.e Make the loop limit a constant and not a variable. On 11 October 2013 18:27, Matthieu Dubet <maattdd at gmail.com> wrote: > 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 conside...
2013 Oct 16
2
[LLVMdev] Converting a i32 pointer to a vector of i32 ( C array to LLVM vector)
...yout())) ;" in the code, the module->dump() doesn't output neither data layout, nor triple target Both those points might confuse the vectorizer ? On Fri, Oct 11, 2013 at 1:40 PM, Renato Golin <renato.golin at linaro.org>wrote: > On 11 October 2013 18:27, Matthieu Dubet <maattdd at gmail.com> wrote: > >> How can I tell LLVM to consider this i32* as an <10 x i32> (and thus get >> the performance improvements thanks to SIMD ..etc..) ? >> > > Hi Matthieu, > > You shouldn't need to do anything, the vectorizer should spot that for &...
2013 Oct 11
0
[LLVMdev] Converting a i32 pointer to a vector of i32 ( C array to LLVM vector)
On 11 October 2013 18:27, Matthieu Dubet <maattdd at gmail.com> wrote: > How can I tell LLVM to consider this i32* as an <10 x i32> (and thus get > the performance improvements thanks to SIMD ..etc..) ? > Hi Matthieu, You shouldn't need to do anything, the vectorizer should spot that for you, if the machine you're comp...
2013 Oct 17
0
[LLVMdev] Converting a i32 pointer to a vector of i32 ( C array to LLVM vector)
...->dump() doesn't output neither data layout, nor triple > target > > Both those points might confuse the vectorizer ? > > > On Fri, Oct 11, 2013 at 1:40 PM, Renato Golin <renato.golin at linaro.org>wrote: > > > On 11 October 2013 18:27, Matthieu Dubet <maattdd at gmail.com> wrote: > > > >> How can I tell LLVM to consider this i32* as an <10 x i32> (and thus get > >> the performance improvements thanks to SIMD ..etc..) ? > >> > > > > Hi Matthieu, > > > > You shouldn't need to do anythin...
2013 Oct 17
1
[LLVMdev] Converting a i32 pointer to a vector of i32 ( C array to LLVM vector)
...neither data layout, nor triple >> target >> >> Both those points might confuse the vectorizer ? >> >> >> On Fri, Oct 11, 2013 at 1:40 PM, Renato Golin <renato.golin at linaro.org>wrote: >> >>> On 11 October 2013 18:27, Matthieu Dubet <maattdd at gmail.com> wrote: >>> >>>> How can I tell LLVM to consider this i32* as an <10 x i32> (and thus get >>>> the performance improvements thanks to SIMD ..etc..) ? >>>> >>> >>> Hi Matthieu, >>> >>> You shou...