search for: reduce_add

Displaying 3 results from an estimated 3 matches for "reduce_add".

2020 Aug 20
2
Question about llvm vectors
...t be very similar to have advanced generic vector operations and CPU specific implementation for those builtins? Regarding hadd; I agree, the name does not very well describe what it is doing. And yes hadd could be summing all the vector elements, but I think that the usual terminology for that is reduce_add. In my case I use it for computing the mono signal of a stereo interleaved signal: a = load(in); b = load(in + K); l = suffle(a, b, 0, 2, 4, 6, ...); // l and r have the same size as a r = suffle(a, b, 1, 3, 5, 7, ...); m = .5 * (l + r); // m has the same size as a and b which is maybe optimal fo...
2020 Aug 19
2
Question about llvm vectors
Hi, I love llvm vectors, yet I wonder why some advanced vector operations are specific to some CPU targets? Let me take an example: /// Horizontally adds the adjacent pairs of values contained in two /// 128-bit vectors of [4 x float]. /// /// \headerfile <x86intrin.h> /// /// This intrinsic corresponds to the <c> VHADDPS </c> instruction. /// /// \param __a /// A
2014 Nov 11
4
[LLVMdev] supporting SAD in loop vectorizer
----- Original Message ----- > From: "James Molloy" <james at jamesmolloy.co.uk> > To: "Hal Finkel" <hfinkel at anl.gov> > Cc: "Dibyendu Das" <Dibyendu.Das at amd.com>, llvmdev at cs.uiuc.edu > Sent: Tuesday, November 11, 2014 8:21:37 AM > Subject: Re: [LLVMdev] supporting SAD in loop vectorizer > > > If you'd like to