<div class="gmail_quote">On Thu, May 12, 2011 at 9:56 PM, 陳韋任 <span dir="ltr"><<a href="mailto:chenwj@iis.sinica.edu.tw">chenwj@iis.sinica.edu.tw</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi, Dan<br>
<br>
  Someone on the irc suggest me using custom lowering to do the mapping<br>
correctly. But I am still trying to figure out how to do that.<br></blockquote><div><br></div><div>Custom lowering means implementing the SelectionDAG instruction selection in the C++ class instead of the TableGen file.  See PTXISelLowering.{h,cpp} for some examples.  This just allows arbitrary matching and code generation logic instead of just pattern matching.</div>
<div><br></div><div>Though, I have to agree with Dan on assessing whether the selection logic is needed.  Do you have an example where the PTX back-end cannot generate code for some piece of LLVM IR because of the lack of 'not' selection?</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im"><br>
Regards,<br>
chenwj<br>
<br>
--<br>
Wei-Ren Chen (陳韋任)<br>
Computer Systems Lab, Institute of Information Science,<br>
Academia Sinica, Taiwan (R.O.C.)<br>
Tel:886-2-2788-3799 #1667<br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="h5">LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><br><div>Thanks,</div><div><br></div><div>Justin Holewinski</div><br>