<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">
</head>
<body>
<div>
<div style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif">I thought i sent this earlier but it seems not... Its mainly because IR doesn't allow metadata on function decls/definitions!<br>
<br>
Sent from my Windows Phone</div>
</div>
<div dir="ltr">
<hr>
<span style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">From:
</span><span style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif"><a href="mailto:renato.golin@linaro.org">Renato Golin</a></span><br>
<span style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">Sent:
</span><span style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif">ý17/ý12/ý2013 22:06</span><br>
<span style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">To:
</span><span style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif"><a href="mailto:listmail@philipreames.com">Philip Reames</a></span><br>
<span style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">Cc:
</span><span style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif"><a href="mailto:James.Molloy@arm.com">James Molloy</a>;
<a href="mailto:llvm-commits@cs.uiuc.edu">LLVM Commits</a></span><br>
<span style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif; FONT-WEIGHT: bold">Subject:
</span><span style="FONT-SIZE: 11pt; FONT-FAMILY: Calibri,sans-serif">Re: RFC: Enable vectorization of call instructions in the loop vectorizer</span><br>
<br>
</div>
<div>
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On 17 December 2013 19:10, Philip Reames <span dir="ltr">
<<a href="mailto:listmail@philipreames.com" target="_blank">listmail@philipreames.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
<div class="im">
<div><span style="color:rgb(34,34,34)">Specifically with regards to metadata, why is the metadata on the call site not the function declaration?  I would expect that a call to "cos" would always vectorize to the same "cos4".  Is supporting different vectorizations
 at different points of the program a key goal?</span></div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Yes. Sometimes...</div>
<div><br>
</div>
<div>See the test in the patch for an idea of two different functions, maybe both available, maybe not.</div>
<div><br>
</div>
<div>Also, some variants could be more efficient in some cases, while some in others. This may sound vague, but OpenCL has such a large number of functions that I'd be surprised if there were only simple cases... James can give more concrete examples on where
 this is important.<br>
</div>
<div><br>
</div>
<div>In a strictly libc case, you may create several variants of memcpy based on the arguments (restrict or volatile, address space boundaries, etc), and apply the fastest you can on each case.</div>
<div><br>
</div>
<div>cheers,</div>
<div>--renato</div>
</div>
</div>
</div>
</div>
<br>
<font face="Arial" color="Black" size="2">-- IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents
 to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.<br>
<br>
ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2557590<br>
ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ, Registered in England & Wales, Company No: 2548782<br>
</font>
</body>
</html>