<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 17, 2015 at 2:26 AM, Elena Demikhovsky <span dir="ltr"><<a href="mailto:elena.demikhovsky@intel.com" target="_blank">elena.demikhovsky@intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi hfinkel, nadav, aschwaighofer,<br>
<br>
Changing syntax of vector GEP.<br>
<br>
Please see the start of discussion: <a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-March/082921.html" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-March/082921.html</a><br>
And the end agreement: <a href="http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-March/082989.html" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/pipermail/llvmdev/2015-March/082989.html</a><br>
<br>
According to the current GEP syntax, vector GEP requires that each index must be a vector with the same number of elements.<br>
<br>
%A = getelementptr <4 x i8*> %ptrs, <4 x i64> %offsets<br></blockquote><div><br>(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)<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
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.<br>
<br>
%A = getelementptr i8* %ptr, <4 x i64> %offsets<br></blockquote><div><br>^ what's the type of the result of this operation/what's it do?<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
or<br>
%A = getelementptr <4 x i8*> %ptrs, i64 %offset<br></blockquote><div><br>(this one seems more obvious to me - I assume the result is anotehr <4 x i8*> with the offset applied to each vector element)<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
REPOSITORY<br>
rL LLVM<br>
<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_D10496&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=fDJ38stoSLPJN3puoKe2JcSTkSG9rpzXSS_nheOqWSs&s=2eZaZssGWYY7_X39s5X1lrqBMhw6UyzOy5hOmT6qBoU&e=" rel="noreferrer" target="_blank">http://reviews.llvm.org/D10496</a><br>
<br>
Files:<br>
include/llvm/IR/Instructions.h<br>
lib/AsmParser/LLParser.cpp<br>
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp<br>
lib/IR/Verifier.cpp<br>
test/Assembler/getelementptr_vec_idx1.ll<br>
test/Assembler/getelementptr_vec_idx2.ll<br>
test/Assembler/getelementptr_vec_idx3.ll<br>
test/CodeGen/X86/masked_gather_scatter.ll<br>
test/CodeGen/X86/vector-gep.ll<br>
<br>
EMAIL PREFERENCES<br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__reviews.llvm.org_settings_panel_emailpreferences_&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=mQ4LZ2PUj9hpadE3cDHZnIdEwhEBrbAstXeMaFoB9tg&m=fDJ38stoSLPJN3puoKe2JcSTkSG9rpzXSS_nheOqWSs&s=o5iz5es59j2_fu2t6H0mSqw91t9ywFd1hhLWV7Y421U&e=" rel="noreferrer" target="_blank">http://reviews.llvm.org/settings/panel/emailpreferences/</a><br>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div></div>