<div dir="ltr"><div><div>The reaction seems to be positive so far.<br><br></div>OK, we (meaning someone from Intel) are going to prepare and commit support for #pragma omp -- using the metadata that Renato introduced.<br><br>
</div>Andrey<br><div><div><br></div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Feb 10, 2014 at 6:26 PM, 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi All,<br><br></div><div>Continuing (and forking :-)) the discussion started by Renato (<a href="http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-February/035162.html" target="_blank">http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-February/035162.html</a>), what is the community's opinion on introducing pragma simd support in clang?<br>

<br></div><div>One possibility is to commit "#pragma omp simd" implementation, which is a part of OpenMP 4 standard (<a href="http://www.openmp.org/mp-documents/OpenMP4.0.0.pdf" target="_blank">http://www.openmp.org/mp-documents/OpenMP4.0.0.pdf</a>, section 2.8). I see two downsides here: a) "omp" prefix (which might be confusing to some) and b) necessity to add -fopenmp to enable support (this also automatically links OpenMP RTL, which has nothing to do with this particular pragma).<br>

<br></div><div>Another possibility is to drop omp prefix -- this removes the downsides mentioned above (and yes, makes the pragma similar to what is proposed in CilkPlus -- not necessarily a bad thing in itself).<br><br>
</div>
<div>IMHO, both alternatives provide a useful, standards-based tool to control vectorization in clang / llvm compiler -- while also advancing clang's compatibility with existing standards.<br></div><div><br></div><div>

We (Intel) can contribute all required code -- implementation is ready, just needs some massaging before submission to clang trunk.<br></div><div><br></div><div>Opinions?<br></div><div><br></div>Yours,<br>Andrey<br>========<br>

</div>Software Engineer<br>Intel<br><br></div>
</blockquote></div><br></div>