<div dir="ltr"><div>I took liberty of starting a new thread on adding #pragma simd: <a href="http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-February/035242.html">http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-February/035242.html</a><br>
<br></div>Andrey<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Feb 5, 2014 at 4:44 PM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</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"><div class="gmail_extra"><div class="gmail_quote"><div class="">On 5 February 2014 12:27, Andrey Bokhanko <span dir="ltr"><<a href="mailto:andreybokhanko@gmail.com" target="_blank">andreybokhanko@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div>I agree -- "omp simd" pragma doesn't cover everything you proposed (certainly has nothing to do with unrolling). However, it is a part of an accepted and widely used standard. Thus, if we (meaning the whole community) want to introduce a method to control vectorization that we advocate to be employed by end users and not as a debug tool by llvm developers, this is, IMHO, the way to go.<br>
</div></div></blockquote><div><br></div></div><div>Not a single argument against it. ;)</div><div class=""><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr"><div></div><div><div class="gmail_extra"><div class="gmail_quote"><div><div><span style="color:rgb(34,34,34)">If you volunteer to do code review, we can prepare patches (that implement "omp simd" and rely on back-end support you implemented) and commit them.</span></div>
</div></div></div></div></div></blockquote><div></div></div></div><br></div><div class="gmail_extra">I'm pretty sure others will as well, but feel free to copy me on the patch reviews.</div><div class="gmail_extra"><br>
</div>
<div class="gmail_extra">For an idea on what the metadata looks like, check the tests in src/test/Transforms/LoopVectorize/</div><div class="gmail_extra"> * metadata-unroll.ll</div><div class="gmail_extra"> * metadata-width.ll<br>
</div><div class="gmail_extra"> * vectorize-once.ll</div><div class="gmail_extra"> * X86/metadata-enable.ll</div><div class="gmail_extra"> * X86/already-vectorized.ll<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">
cheers,</div><div class="gmail_extra">--renato</div></div>
</blockquote></div><br></div>