<div dir="ltr">



















<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif">Hi,<span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span> </span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif">for DAG-to-DAG instruction selection I’ve implemented a
pattern, which creates from one SDNode two instructions, something like:<span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span> </span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt"><span style="font-family:monospace">def: Pat<(NEW_SDNODE REG:$r1),<span></span></span></p><span style="font-family:monospace">

</span><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt"><span style="font-family:monospace"> <span>  </span><span>      </span>(INST_OUT
(INST_IN), REG:$r1)>;<span></span></span></p><span style="font-family:monospace">

</span><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt"><span style="font-family:monospace"> </span></p><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt"><span style="font-family:monospace"></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif">where INST_IN doesn't  accepts any inputs and INST_OUT accepts two inputs - one returned by INST_IN and REG;$r1.</p><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"></p><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><br></p><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif">Is there any possibility to ‘Glue’ two instruction created in
a such way? Maybe something similar to creation SDNodes with SDNPOutGlue, SDNPInGlue) ?</p><p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><br></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif">These two instructions INST_IN and INST_OUT have to be one after another without
any other inserted between them.<span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif"><span> </span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif">Thanks,<span></span></p>

<p class="MsoNormal" style="margin:0in 0in 0.0001pt;font-size:11pt;font-family:"Calibri",sans-serif">Przemek<span></span></p>





</div>