<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Thanks, Scott.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Regarding this:</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">> <span> It doesn't remove all dependencies, just dependencies that inhibit vectorization.</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>This matches what Cray's manual says, but I'm also not sure how to interpret this statement. Does that means that the dependencies ignored are dependent on the selected target? I'm a bit worried that the dependencies
 interesting for vectorization might change over time or depend on the hardware being targeted. </span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>Can you please take a look at the way that Intel's Fortran manual defines ivdep (<a href="https://software.intel.com/en-us/fortran-compiler-developer-guide-and-reference-ivdep" class="OWAAutoLink" id="LPlnk310760" previewremoved="true">https://software.intel.com/en-us/fortran-compiler-developer-guide-and-reference-ivdep</a>)
 and say whether those semantics would also make sense for Cray's implementation?</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span>I believe our consensus view is that the semantics of these kinds of pragmas should be specified such that we could create a sanitizer which checks their dynamic semantic correctness independent of what the optimizer
 is actually capable of exploiting.</span></p>
<p style="margin-top:0;margin-bottom:0"><span><br>
</span></p>
<p style="margin-top:0;margin-bottom:0"><span> -Hal</span></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<div id="Signature">
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">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%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Scott Manley <rscottmanley@gmail.com><br>
<b>Sent:</b> Friday, August 9, 2019 10:57 AM<br>
<b>To:</b> cameron.mcinally@nyu.edu <cameron.mcinally@nyu.edu><br>
<b>Cc:</b> Finkel, Hal J. <hfinkel@anl.gov>; llvm-dev@lists.llvm.org <llvm-dev@lists.llvm.org>; MAMIDALA SAI PRAHARSH <es17btech11013@iith.ac.in>; YASHAS ANDALURI <es17btech11025@iith.ac.in>; HAPPY Mahto <cs17btech11018@iith.ac.in>; BHAVYA BAGLA <cs17btech11007@iith.ac.in><br>
<b>Subject:</b> Re: [llvm-dev] [LLVM] (RFC) Addition/Support of new Vectorization Pragmas in LLVM</font>
<div> </div>
</div>
<div>
<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>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><br>
</div>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_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" id="LPlnk116791" class="OWAAutoLink" previewremoved="true">llvm-dev@lists.llvm.org</a>> wrote:<br>
</div>
<blockquote class="x_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" id="LPlnk277798" class="OWAAutoLink" previewremoved="true">llvm-dev@lists.llvm.org</a>> wrote:<br>
</div>
<div class="x_gmail_quote">
<blockquote class="x_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="x_gmail-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="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif">
<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="x_gmail-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" id="LPlnk915029" class="OWAAutoLink" previewremoved="true">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="x_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="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif">
<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="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif">
<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="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif">
<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="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif">
<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=" id="LPlnk56721" class="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247OWAAutoLink OWAAutoLink" target="_blank" style="text-decoration-line:none" previewremoved="true"><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="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif">
<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="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247Signature">
<div class="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247BodyFragment">
<font size="2"><span style="font-size:10pt">
<div class="x_gmail-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="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247divRplyFwdMsg" dir="ltr">
<font face="Calibri, sans-serif" color="#000000" style="font-size:11pt"><b>From:</b> llvm-dev
<a class="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-txt-link-rfc2396E OWAAutoLink" href="mailto:llvm-dev-bounces@lists.llvm.org" target="_blank" id="LPlnk118376" previewremoved="true">
<llvm-dev-bounces@lists.llvm.org></a> on behalf of HAPPY Mahto via llvm-dev <a class="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-txt-link-rfc2396E OWAAutoLink" href="mailto:llvm-dev@lists.llvm.org" target="_blank" id="LPlnk284605" previewremoved="true">
<llvm-dev@lists.llvm.org></a><br>
<b>Sent:</b> Thursday, August 8, 2019 11:55 AM<br>
<b>To:</b> <a class="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-txt-link-abbreviated OWAAutoLink" href="mailto:llvm-dev@lists.llvm.org" target="_blank" id="LPlnk470964" previewremoved="true">
llvm-dev@lists.llvm.org</a> <a class="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-txt-link-rfc2396E OWAAutoLink" href="mailto:llvm-dev@lists.llvm.org" target="_blank" id="LPlnk882779" previewremoved="true">
<llvm-dev@lists.llvm.org></a><br>
<b>Cc:</b> BHAVYA BAGLA <a class="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-txt-link-rfc2396E OWAAutoLink" href="mailto:cs17btech11007@iith.ac.in" target="_blank" id="LPlnk418311" previewremoved="true">
<cs17btech11007@iith.ac.in></a>; MAMIDALA SAI PRAHARSH <a class="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-txt-link-rfc2396E OWAAutoLink" href="mailto:es17btech11013@iith.ac.in" target="_blank" id="LPlnk22449" previewremoved="true">
<es17btech11013@iith.ac.in></a>; HAPPY KUMAR <a class="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-txt-link-rfc2396E OWAAutoLink" href="mailto:cs17btech11018@iith.ac.in" target="_blank" id="LPlnk787022" previewremoved="true">
<cs17btech11018@iith.ac.in></a>; YASHAS ANDALURI <a class="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247moz-txt-link-rfc2396E OWAAutoLink" href="mailto:es17btech11025@iith.ac.in" target="_blank" id="LPlnk34381" previewremoved="true">
<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="x_gmail-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="x_gmail-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=" id="LPlnk258033" class="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247OWAAutoLink OWAAutoLink" target="_blank" style="text-decoration:none" previewremoved="true" title="https://urldefense.proofpoint.com/v2/url?u=https-3A__docs.google.com_document_d_1YjGnyzWFKJvqbpCsZicCUczzU8HlLHkmG9MssUw-2DR1A_edit-3Fusp-3Dsharing&amp;d=DwMF-g&amp;c=slrrB7dE8n7gBJbeO0g-IQ&amp;r=O_4M49EtSpZ_-BQYeigzGv0P4__noMcSu2RYEjS1vKs&amp;m=ttZjwoTRuUQgVSd_8PZOPypfqqn-GiNqAl9WLpPxiAk&amp;s=JAlwNOiT5i7zvP9qxjAe_Rt8ZZv_ukBvSbfEZzH_CZI&amp;e=
Ctrl+Click or tap to follow the link"><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="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247LPBorder_GT_15652855648010.5487166625028437" style="margin-bottom:20px; overflow:auto; width:100%; text-indent:0px">
<table id="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247LPContainer_15652855647870.6039906081120645" cellspacing="0" 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)">
<tbody>
<tr valign="top" style="border-spacing:0px">
<td id="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247ImageCell_15652855647910.6809876809871069" colspan="1" style="width:250px; display:table-cell; padding-right:20px">
<div id="x_gmail-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="LPlnk398842" 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=" target="_blank" style="display:table-cell; text-align:center" class="OWAAutoLink" previewremoved="true"><img id="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247LPThumbnailImageID_15652855647930.8542209161246299" height="131" width="250" style="display: inline-block; max-width: 250px; max-height: 250px; height: 131px; width: 250px; border-width: 0px; vertical-align: bottom; user-select: none;" src="https://lh4.googleusercontent.com/BFUxChQk941g1yFLPCtFJ6l0ADX-mYOx9H4rwnKhKhax-5qlknMQuqS5g1glN-44f0Ls3w=w1200-h630-p"></a></div>
</td>
<td id="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247TextCell_15652855647940.6259626968425227" colspan="2" style="vertical-align:top; padding:0px; display:table-cell">
<div id="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247LPTitle_15652855647940.417183158898472">
<a id="LPlnk495528" 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=" target="_blank" style="text-decoration:none" class="OWAAutoLink" previewremoved="true">Vectorization
 Pragmas LLVM:RFC: V2</a></div>
<div id="x_gmail-m_-7382431773272125579gmail-m_-748571500196814769gmail-m_1475094253979463247LPMetadata_15652855647970.864892127964479">
<a href="http://docs.google.com" target="_blank" id="LPlnk502150" class="OWAAutoLink" previewremoved="true">docs.google.com</a></div>
<div id="x_gmail-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="x_gmail-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" id="LPlnk519306" class="OWAAutoLink" previewremoved="true">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" id="LPlnk428707" class="OWAAutoLink" previewremoved="true">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" id="LPlnk420128" class="OWAAutoLink" previewremoved="true">llvm-dev@lists.llvm.org</a><br>
<a href="https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank" id="LPlnk250397" class="OWAAutoLink" previewremoved="true">https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>