<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">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>Not a single argument against it. ;)</div><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 class="im"><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><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>