[PATCH] Extending Vector GetElementPtr - please review
dblaikie at gmail.com
Wed Jun 17 08:41:06 PDT 2015
On Wed, Jun 17, 2015 at 2:26 AM, Elena Demikhovsky <
elena.demikhovsky at intel.com> wrote:
> Hi hfinkel, nadav, aschwaighofer,
> Changing syntax of vector GEP.
> Please see the start of discussion:
> And the end agreement:
> According to the current GEP syntax, vector GEP requires that each index
> must be a vector with the same number of elements.
> %A = getelementptr <4 x i8*> %ptrs, <4 x i64> %offsets
(as an aside, this is the old GEP syntax, the new syntax has an explicit
type before the first parameter, FWIW - I don't think the opaque pointer
work I'm doing is in conflict with what you're proposing, but it's
something to keep in mind)
> In this implementation I let each index be or vector or scalar. All vector
> indices must have the same number of elements. The scalar value will mean
> the splat vector value.
> %A = getelementptr i8* %ptr, <4 x i64> %offsets
^ what's the type of the result of this operation/what's it do?
> %A = getelementptr <4 x i8*> %ptrs, i64 %offset
(this one seems more obvious to me - I assume the result is anotehr <4 x
i8*> with the offset applied to each vector element)
> rL LLVM
> EMAIL PREFERENCES
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-commits