<div dir="ltr">Dear,<div><br></div><div>I am looking at the Instructions defined in the XXXXInstrInfo.td where I can see a def record defined like below</div><div><br></div><div><div>def ADD8rr  : I8rr<0x0,</div><div>                   (outs GR8:$dst), (ins GR8:$src, GR8:$src2),</div>

<div>                   "add.b\t{$src2, $dst}",</div><div>                   [(set GR8:$dst, (<b><i style="background-color:rgb(204,0,0)">add </i></b>GR8:$src, GR8:$src2)),</div><div>                    (implicit SRW)]>;</div>

</div><div><br></div><div>Now here I would like the to replace the add(highlighted) by an arbitrary function say 'foo' (foo will use already defined functions. For eg. foo could be the gcd function evaluating the gcd of two operands and likewise). </div>
<div><br></div><div>Note: gcd is just an example.</div><div><br></div><div><br></div><div>How can this be achieved?</div><div><br></div><div>-- <br></div><div>Pratik<div><br></div>
</div></div>