<div dir="ltr"><div>If you have a call to 'sin(float)', you should see ISD::FSIN in the DAG (-view-isel-dags) if this is legal for your target (ie you're not expanding or customizing in XXXISelLowering).</div><div><br></div><div>For the others, if you create the intrinsic you should see the same thing in your DAG (ie not a call, a node like 'llvm.tan', or whatever you call it).</div><div><br></div><div>-Ryan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 7, 2016 at 7:00 AM, Varun Patil <span dir="ltr"><<a href="mailto:varun.patil40@gmail.com" target="_blank">varun.patil40@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">Ok thank you Ryan I will try this<br></div><div class="gmail_extra"><br clear="all"><div><div class="m_-6330488581959536395gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><br></div><div><br></div>Thanks and Regards<span class="HOEnZb"><font color="#888888"><div>Varun</div></font></span></div></div></div></div></div><div><div class="h5">
<br><div class="gmail_quote">On Mon, Nov 7, 2016 at 5:27 PM, Ryan Taylor <span dir="ltr"><<a href="mailto:ryta1203@gmail.com" target="_blank">ryta1203@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>Some of these SDnodes are already defined in ISDOpcodes.h (FSIN, FCOS and also FSINCOS), so just map from them.</div><div><br></div><div>For the others you can add an intrinsic (this is how we've done it) and map from those (or you could add the ISD yourself).</div><div><br></div><div>-Ryan</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-6330488581959536395h5">On Mon, Nov 7, 2016 at 6:50 AM, Varun Patil via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-6330488581959536395h5"><div dir="ltr"><div><div>HI developers,<br><br></div>I want to add trigonometric instructions in my <a href="http://instrinfo.td" target="_blank">instrinfo.td</a>  files how can i directly map these instructions in .td files. Please help me Guys.For Sin, Cos, Tan and Cot Instructions.<br><br></div>If I used llvm.sin.* as SDNode Then it is error as llvm variable is not defined SO please Help me.<br clear="all"><div><div><div><div><div><div class="m_-6330488581959536395m_6357793872984864804m_9218360973986424460gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><br></div><div><br></div>Thanks and Regards<span class="m_-6330488581959536395m_6357793872984864804HOEnZb"><font color="#888888"><div>Varun</div></font></span></div></div></div></div></div>
</div></div></div></div></div>
<br></div></div>______________________________<wbr>_________________<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="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" target="_blank" rel="noreferrer">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>