<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 9, 2019 at 8:57 AM Scott Manley via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">> There is a fundamental problem with the way that ivdep is defined by Intel's current documentation, at least for C/C++. As you note in your Google doc, it essentially says that the optimizer may ignore loop-carried dependencies except for those dependencies it can definitely prove are present. These are not semantics that any other compiler can actually replicate, and is not equivalent to "vectorize(assume_safety)" (which asserts that no loop-carried dependencies are present). The good news is that, in conversations I've had with Intel, an openness to making these semantics more concrete has been expressed. I think it would be very useful to have ivdep in Clang, but only after we nail down the semantics with Intel is some useful way.<div><br><div>Agreed. I don't see a lot of value in having the compiler override a pragma that is supposed to override the compiler :) Cray's IVDEP really means what the documentation says: Ignore Vector DEPendencies. It doesn't remove all dependencies, just dependencies that inhibit vectorization. It also does not force vectorization. If it's not possible or not profitable to vectorize, then it won't vectorize. </div><div><br></div></div></div></blockquote><div><br></div><div>+1<br></div><div><br></div><div>This one is particularly useful because some compilers implement "omp-simd" as ignore the cost model and vectorize unconditionally, so it is really useful in C/C++ code to be able to provide a weaker statement to the compiler. I disagree with the strong interpretation of the OpenMP standard but am not willing to quit my job over it ;-)</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div></div><div>I will add that ivdep is well used by Cray and its users, so I'd like to see it well defined in Clang/llvm.</div></div></div></blockquote><div><br></div><div>51K references on GitHub (<a href="https://github.com/search?q=pragma+ivdep&type=Code">https://github.com/search?q=pragma+ivdep&type=Code</a>) suggest it is widely used beyond the Cray compiler.</div><div><br></div><div>Jeff</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 8, 2019 at 8:51 PM Cameron McInally via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr">On Thu, Aug 8, 2019 at 7:52 PM Finkel, Hal J. via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p><br>
</p>
<div class="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-cite-prefix">On 8/8/19 2:03 PM, Hal Finkel wrote:<br>
</div>
<blockquote type="cite">
<div id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<p style="margin-top:0px;margin-bottom:0px">Hi,</p>
<p style="margin-top:0px;margin-bottom:0px"><br>
</p>
<p style="margin-top:0px;margin-bottom:0px">First, as a high-level note, you posted a link to a Google doc, and at the end of the Google doc, you have a list of questions that you'd like answered. In the future, please put the questions directly in the email. For
one thing, more people will read your email than will open your Google doc. Second, having the questions in the email should allow a better threading structure to the replies.</p>
<p style="margin-top:0px;margin-bottom:0px"><br>
</p>
<p style="margin-top:0px;margin-bottom:0px"><span id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247docs-internal-guid-383a5534-7fff-9861-7fcb-e593c7227357"></span></p>
<ul style="margin-top:0px;margin-bottom:0px">
<li dir="ltr" style="list-style-type:disc;font-size:14pt;font-family:Arial;background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14pt;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">Ivdep:
</span><span style="font-size:11pt;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">Is
</span><span style="font-size:11pt;font-style:italic;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">clang loop vectorize(assume_safety)
</span><span style="font-size:11pt;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">equivalent to</span><span style="font-size:11pt;font-style:italic;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">
ivdep</span><span style="font-size:11pt;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">? To what extent do the semantics of ivdep need to be modified for Clang to create an equally “</span><span style="font-size:11pt;font-style:italic;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">useful
pragma</span><span style="font-size:11pt;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">”? To what extent would it be helpful to have this pragma in Clang?</span></p>
</li></ul>
</div>
</blockquote>
<p><br>
</p>
<p><br>
</p>
<p>There is a fundamental problem with the way that ivdep is defined by Intel's current documentation, at least for C/C++. As you note in your Google doc, it essentially says that the optimizer may ignore loop-carried dependencies except for those dependencies
it can definitely prove are present. These are not semantics that any other compiler can actually replicate, and is not equivalent to "vectorize(assume_safety)" (which asserts that no loop-carried dependencies are present). The good news is that, in conversations
I've had with Intel, an openness to making these semantics more concrete has been expressed. I think it would be very useful to have ivdep in Clang, but only after we nail down the semantics with Intel is some useful way.</p></div></blockquote><div> </div><div>To be fair, IVDEP most likely originated at Cray. [Or maybe Control Data. The history is fuzzy that far back. I do know it predates ANSI C.]</div><div><br></div><div>There's a publicly available copy of the Cray C/C++ manual here: </div><div><br></div><div><a href="https://pubs.cray.com/content/S-2179/9.0/cray-classic-c-and-c++-reference-manual/vectorization-directives" target="_blank">https://pubs.cray.com/content/S-2179/9.0/cray-classic-c-and-c++-reference-manual/vectorization-directives</a></div><div><br></div><div>Scott Manley from Cray would be good resource to tap for clarification on the semantics.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"><p>
</p>
<blockquote type="cite">
<div id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<ul style="margin-top:0px;margin-bottom:0px">
<li dir="ltr" style="list-style-type:disc;font-size:14pt;font-family:Arial;background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">
</li><li dir="ltr" style="list-style-type:disc;font-size:14pt;font-family:Arial;background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14pt;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">Nontemporal:</span><span style="font-size:11pt;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">What
kind of analysis can we do in LLVM to find where to use nontemporal accesses? Any help would be greatly appreciated.</span></p>
</li></ul>
</div>
</blockquote>
<p><br>
</p>
<p><br>
</p>
<p>If you're asking about the pragma, then what analysis is necessary? In general, you're looking for accesses that won't benefit from caching (e.g., streaming data which is not accessed again).<br>
</p>
<p><br>
</p>
<blockquote type="cite">
<div id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<ul style="margin-top:0px;margin-bottom:0px">
<li dir="ltr" style="list-style-type:disc;font-size:14pt;font-family:Arial;background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">
</li><li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14pt;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">vecremainder/novecremainder:
</span><span style="font-size:11pt;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">Should the pragma simply call the vectorizer to attempt to vectorize the remainder loop, or should the vectorizer
use a different method?</span></p>
</li></ul>
</div>
</blockquote>
<p><br>
</p>
<p><br>
</p>
<p>Something like that. There were patches posted at some point to enable tail-loop vectorization. At this point, I imagine that you'd construct a VPlan with the vectorized tail.<br>
</p>
<p><br>
</p>
<blockquote type="cite">
<div id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<ul style="margin-top:0px;margin-bottom:0px">
<li dir="ltr" style="list-style-type:disc;font-size:11pt;font-family:Arial;background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">
</li><li dir="ltr" style="list-style-type:disc;font-size:14pt;font-family:Arial;background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14pt;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">mask_readwrite/nomask_readwrite:
</span><span style="font-size:11pt;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">Is it a good idea to implement a pragma that will generate mask intrinsics in the IR? What other architectures
(except x86) has support for masked read/writes?</span></p>
</li></ul>
</div>
</blockquote>
<p><br>
</p>
<p>ARM SVE might also fall into this category.<br>
</p>
<p><br>
</p>
<blockquote type="cite">
<div id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<ul style="margin-top:0px;margin-bottom:0px">
<li dir="ltr" style="list-style-type:disc;font-size:14pt;font-family:Arial;background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">
</li></ul>
<br>
<p dir="ltr" style="line-height:1.38;margin-left:36pt;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:11pt;font-family:Arial;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">Reference:</span><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__llvm.org_devmtg_2015-2D04_slides_MaskedIntrinsics.pdf&d=DwMF-g&c=slrrB7dE8n7gBJbeO0g-IQ&r=O_4M49EtSpZ_-BQYeigzGv0P4__noMcSu2RYEjS1vKs&m=ttZjwoTRuUQgVSd_8PZOPypfqqn-GiNqAl9WLpPxiAk&s=o2U9j6XECBRnTOcqSIRQT-dWi8owoO8q0xKOEW6f8z0&e=" style="text-decoration-line:none" id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247LPlnk2874" class="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247OWAAutoLink" target="_blank"><span style="font-size:11pt;font-family:Arial;color:rgb(17,85,204);font-variant-numeric:normal;font-variant-east-asian:normal;text-decoration-line:underline;vertical-align:baseline;white-space:pre-wrap">https://llvm.org/devmtg/2015-04/slides/MaskedIntrinsics.pdf</span></a></p>
<br>
<p dir="ltr" style="line-height:1.38;margin-left:36pt;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:11pt;font-family:Arial;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">LLVM has mask intrinsics for targets with AVX, AVX2, AVX-512.</span></p>
<p dir="ltr" style="line-height:1.38;margin-left:36pt;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:11pt;font-family:Arial;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">From Slides: ”Most of the targets do not support masked instructions, optimization of instructions
with masks is problematic, avoid introducing new masked instructions into LLVM IR”</span></p>
<ul style="margin-top:0px;margin-bottom:0px">
<li dir="ltr" style="list-style-type:disc;font-size:14pt;font-family:Arial;background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:14pt;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">aligned/unaligned:
</span><span style="font-size:11pt;background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">Is it worthwhile to have LLVM specific pragma rather depending on OpenMP?</span></p>
</li></ul>
</div>
</blockquote>
<p><br>
</p>
<p>My opinion is that, so long as we have our own vectorization pragma, it should be as fully-featured as people request it to be.</p>
<p><br>
</p>
<p> -Hal</p>
<p><br>
</p>
<p><br>
</p>
<blockquote type="cite">
<div id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247divtagdefaultwrapper" style="font-size:12pt;color:rgb(0,0,0);font-family:Calibri,Helvetica,sans-serif" dir="ltr">
<ul style="margin-top:0px;margin-bottom:0px">
<li dir="ltr" style="list-style-type:disc;font-size:14pt;font-family:Arial;background-color:transparent;font-variant-numeric:normal;font-variant-east-asian:normal;vertical-align:baseline;white-space:pre-wrap">
</li></ul>
<br>
<p style="margin-top:0px;margin-bottom:0px"> -Hal</p>
<p style="margin-top:0px;margin-bottom:0px"><br>
</p>
<div id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247Signature">
<div class="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247BodyFragment"><font size="2"><span style="font-size:10pt">
<div class="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247PlainText">Hal Finkel<br>
Lead, Compiler Technology and Programming Languages<br>
Leadership Computing Facility<br>
Argonne National Laboratory</div>
</span></font></div>
</div>
<br>
<br>
<div style="color:rgb(0,0,0)">
<hr style="display:inline-block;width:98%">
<div id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" face="Calibri, sans-serif" color="#000000"><b>From:</b> llvm-dev
<a class="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-txt-link-rfc2396E" href="mailto:llvm-dev-bounces@lists.llvm.org" target="_blank">
<llvm-dev-bounces@lists.llvm.org></a> on behalf of HAPPY Mahto via llvm-dev <a class="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-txt-link-rfc2396E" href="mailto:llvm-dev@lists.llvm.org" target="_blank">
<llvm-dev@lists.llvm.org></a><br>
<b>Sent:</b> Thursday, August 8, 2019 11:55 AM<br>
<b>To:</b> <a class="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org" target="_blank">
llvm-dev@lists.llvm.org</a> <a class="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-txt-link-rfc2396E" href="mailto:llvm-dev@lists.llvm.org" target="_blank">
<llvm-dev@lists.llvm.org></a><br>
<b>Cc:</b> BHAVYA BAGLA <a class="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-txt-link-rfc2396E" href="mailto:cs17btech11007@iith.ac.in" target="_blank">
<cs17btech11007@iith.ac.in></a>; MAMIDALA SAI PRAHARSH <a class="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-txt-link-rfc2396E" href="mailto:es17btech11013@iith.ac.in" target="_blank">
<es17btech11013@iith.ac.in></a>; HAPPY KUMAR <a class="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-txt-link-rfc2396E" href="mailto:cs17btech11018@iith.ac.in" target="_blank">
<cs17btech11018@iith.ac.in></a>; YASHAS ANDALURI <a class="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-txt-link-rfc2396E" href="mailto:es17btech11025@iith.ac.in" target="_blank">
<es17btech11025@iith.ac.in></a><br>
<b>Subject:</b> [llvm-dev] [LLVM] (RFC) Addition/Support of new Vectorization Pragmas in LLVM</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Hello all,</span></div>
<div><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span></div>
<div>
<p dir="ltr" id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247x_gmail-docs-internal-guid-ab5c3399-7fff-ad6d-77a6-fda8a9ad8e90" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">We are students from Indian Institute
of Technology(IIT), Hyderabad, we would like to propose the addition of the following pragmas in LLVM that aide in (or possibly increase the scope of) vectorization in LLVM (in comparison with other compilers).</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span></p>
<ol id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247x_gmail-docs-internal-guid-1210961d-7fff-442e-856b-6600c80a36d8" style="margin-top:0px;margin-bottom:0px">
<li dir="ltr" style="list-style-type:decimal;font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">ivdep</span></p>
</li><li dir="ltr" style="list-style-type:decimal;font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Nontemporal</span></p>
</li><li dir="ltr" style="list-style-type:decimal;font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">[no]vecremainder</span></p>
</li><li dir="ltr" style="list-style-type:decimal;font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">[no]mask_readwrite</span></p>
</li><li dir="ltr" style="list-style-type:decimal;font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">[un]aligned</span></p>
</li></ol>
<br>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Could you please check the following
Google document for the semantic description of these pragmas: </span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt">
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.google.com_document_d_1YjGnyzWFKJvqbpCsZicCUczzU8HlLHkmG9MssUw-2DR1A_edit-3Fusp-3Dsharing&d=DwMF-g&c=slrrB7dE8n7gBJbeO0g-IQ&r=O_4M49EtSpZ_-BQYeigzGv0P4__noMcSu2RYEjS1vKs&m=ttZjwoTRuUQgVSd_8PZOPypfqqn-GiNqAl9WLpPxiAk&s=JAlwNOiT5i7zvP9qxjAe_Rt8ZZv_ukBvSbfEZzH_CZI&e=" style="text-decoration:none" id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247LPlnk333801" class="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247OWAAutoLink" target="_blank"><span style="font-size:11pt;font-family:Arial;color:rgb(17,85,204);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:underline;vertical-align:baseline;white-space:pre-wrap">https://docs.google.com/document/d/1YjGnyzWFKJvqbpCsZicCUczzU8HlLHkmG9MssUw-R1A/edit?usp=sharing</span></a></p>
<div id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247LPBorder_GT_15652855648010.5487166625028437" style="margin-bottom:20px;overflow:auto;width:100%;text-indent:0px">
<table id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247LPContainer_15652855647870.6039906081120645" style="width:90%;background-color:rgb(255,255,255);overflow:auto;padding-top:20px;padding-bottom:20px;margin-top:20px;border-top:1px dotted rgb(200,200,200);border-bottom:1px dotted rgb(200,200,200)" cellspacing="0">
<tbody>
<tr style="border-spacing:0px" valign="top">
<td id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247ImageCell_15652855647910.6809876809871069" colspan="1" style="width:250px;display:table-cell;padding-right:20px">
<div id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247LPImageContainer_15652855647910.4010814812050496" style="background-color:rgb(255,255,255);height:131px;margin:auto;display:table;width:251px">
<a id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247LPImageAnchor_15652855647920.8326888223292568" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.google.com_document_d_1YjGnyzWFKJvqbpCsZicCUczzU8HlLHkmG9MssUw-2DR1A_edit-3Fusp-3Dsharing&d=DwMF-g&c=slrrB7dE8n7gBJbeO0g-IQ&r=O_4M49EtSpZ_-BQYeigzGv0P4__noMcSu2RYEjS1vKs&m=ttZjwoTRuUQgVSd_8PZOPypfqqn-GiNqAl9WLpPxiAk&s=JAlwNOiT5i7zvP9qxjAe_Rt8ZZv_ukBvSbfEZzH_CZI&e=" style="display:table-cell;text-align:center" target="_blank"><img id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247LPThumbnailImageID_15652855647930.8542209161246299" style="display: inline-block; max-width: 250px; max-height: 250px; height: 131px; width: 250px; border-width: 0px; vertical-align: bottom;" height="131" width="250"></a></div>
</td>
<td id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247TextCell_15652855647940.6259626968425227" colspan="2" style="vertical-align:top;padding:0px;display:table-cell">
<div id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247LPTitle_15652855647940.417183158898472">
<a id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247LPUrlAnchor_15652855647960.6941387553105847" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.google.com_document_d_1YjGnyzWFKJvqbpCsZicCUczzU8HlLHkmG9MssUw-2DR1A_edit-3Fusp-3Dsharing&d=DwMF-g&c=slrrB7dE8n7gBJbeO0g-IQ&r=O_4M49EtSpZ_-BQYeigzGv0P4__noMcSu2RYEjS1vKs&m=ttZjwoTRuUQgVSd_8PZOPypfqqn-GiNqAl9WLpPxiAk&s=JAlwNOiT5i7zvP9qxjAe_Rt8ZZv_ukBvSbfEZzH_CZI&e=" style="text-decoration:none" target="_blank">Vectorization
Pragmas LLVM:RFC: V2</a></div>
<div id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247LPMetadata_15652855647970.864892127964479">
<a href="http://docs.google.com" target="_blank">docs.google.com</a></div>
<div id="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247LPDescription_15652855647990.6759826847547004" style="display:block;color:rgb(102,102,102);font-weight:400;font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif;font-size:14px;line-height:20px;max-height:100px;overflow:hidden">
Vectorization Pragmas in LLVM: An RFC Yashas Andaluri, Happy Mahto, M Sai Praharsh, Bhavya Bagla IIT Hyderabad Aug 8th, 2019 [Thanks to feedback from Venugopal Raghavan, Shivarama Rao (AMD) and Michael Kruse & Hal Finkel (ANL).] Vectorization Pragmas ivdep
vector(nontemporal) vector([no]vecrema...</div>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<br>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">It would be great if you could please
review the above document and suggest us on how to proceed further (either about the semantics, or, about the code sections in LLVM).</span></p>
<br>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Thank you</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">Yashas, Happy, Sai Praharsh, and Bhavya</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap">B.Tech 3rd year, IITH.</span></p>
<p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt">
<span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span></p>
<span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:400;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-variant-east-asian:normal;text-decoration:none;vertical-align:baseline;white-space:pre-wrap"></span></div>
</div>
</div>
</div>
</div>
</blockquote>
<pre class="gmail-m_7038242897720753269gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-signature" cols="72">--
Hal Finkel
Lead, Compiler Technology and Programming Languages
Leadership Computing Facility
Argonne National Laboratory</pre>
</div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Ddev&d=DwIGaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=O_4M49EtSpZ_-BQYeigzGv0P4__noMcSu2RYEjS1vKs&m=ttZjwoTRuUQgVSd_8PZOPypfqqn-GiNqAl9WLpPxiAk&s=L-X4vbafbWIKsdnIqTTXsiRM2ku9-D5cLKCXc18dtUo&e=" rel="noreferrer" target="_blank">https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Ddev&d=DwIGaQ&c=slrrB7dE8n7gBJbeO0g-IQ&r=O_4M49EtSpZ_-BQYeigzGv0P4__noMcSu2RYEjS1vKs&m=ttZjwoTRuUQgVSd_8PZOPypfqqn-GiNqAl9WLpPxiAk&s=L-X4vbafbWIKsdnIqTTXsiRM2ku9-D5cLKCXc18dtUo&e=</a> <br>
</blockquote></div></div></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature">Jeff Hammond<br><a href="mailto:jeff.science@gmail.com" target="_blank">jeff.science@gmail.com</a><br><a href="http://jeffhammond.github.io/" target="_blank">http://jeffhammond.github.io/</a></div></div>