<div dir="ltr"><div>Hi all,</div><div><br></div><div>I want to match addition with 16bit integers. So I define a pattern fragment as follows:</div><div><div>def simm16 : PatLeaf<(imm), [{ return isInt<16>(N->getSExtValue()); }]>;</div><div><br></div><div>Now I am confused between</div><div>(add R32:$dst, simm16:$im) and</div><div>(add R32:$dst, (i32 simm16:$im)).</div><div><br></div><div>Do both of them match the same pattern? Are they equivalent? If not what is the difference?</div><div>I am also confused as to how ValueTypes relate to SDNodes as I think we are able to use both of them as nodes.</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:small"><span style="color:rgb(84,141,212);font-family:arial,helvetica,sans-serif">Regards</span><br></div><div style="font-size:small"><div dir="ltr"><font color="#000000" size="2" face="arial, helvetica, sans-serif"><font color="#548dd4">Pratik Bhatu<br></font><div><font color="#548dd4">Dual Degree(B.Tech + M.Tech), 5th Year</font></div><div><font color="#548dd4">Computer Science and Engineering</font></div><div><font color="#548dd4">IIT Hyderabad</font></div></font></div></div></div></div></div></div>
</div></div>