<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Calibri" size="2"><span style="font-size:11pt;">
<div>Hi,</div>
<div> </div>
<div>We have a function in IRBuilder.h </div>
<div><font face="Consolas" color="#2B91AF">Value<font color="black"> *CreateVectorSplat(</font><font color="blue">unsigned</font><font color="black"> </font><font color="gray">NumElts</font><font color="black">, </font>Value<font color="black"> *</font><font color="gray">V</font><font color="black">,
</font><font color="blue">const</font><font color="black"> </font>Twine<font color="black"> &</font><font color="gray">Name</font><font color="black"> = </font><font color="#A31515">""</font><font color="black">) {</font></font></div>
<div><font face="Consolas">..</font></div>
<div><font face="Consolas">}</font></div>
<div><font face="Consolas"> </font></div>
<div>This function creates 2 instructions - “insertelement” and “shuffle” with all-zero mask.</div>
<div> </div>
<div>Now I want to add</div>
<div>Value *getSplatValue(Value *Val). This function will try to recognize the pattern - insertelement+shuffle and return the splat value (or nullptr).</div>
<div>I suppose, this interface should be useful. Do you agree with me?</div>
<div> </div>
<div>If yes, where should I put it? May it be I can define a new class VectorInst and put this interface there?</div>
<div>Thank you.</div>
<div> </div>
<div> </div>
<ul style="margin:0;padding-left:36pt;">
<font face="Times New Roman" size="3" color="#31849B"><span style="font-size:12pt;">
<li><b><i> Elena</i></b></li></span></font>
</ul>
<div> </div>
<div> </div>
<div> </div>
</span></font>
<p>---------------------------------------------------------------------<br>
Intel Israel (74) Limited</p>

<p>This e-mail and any attachments may contain confidential material for<br>
the sole use of the intended recipient(s). Any review or distribution<br>
by others is strictly prohibited. If you are not the intended<br>
recipient, please contact the sender and delete all copies.</p></body>
</html>