<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Seems llvm cannot pass metadata to MachineInstr, or setting operand description in class Instruction and pass to class MachineInstr.<div class="">Is it a good idea to extend llvm kernel structure to having this feature?</div><div class=""><br class=""></div><div class="">Jonathan</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Nov 27, 2017, at 9:01 PM, Jatin Bhateja <<a href="mailto:jatin.bhateja@gmail.com" class="">jatin.bhateja@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="auto" class=""><span style="font-family:sans-serif;font-size:16.512px" class="">SelectionDAGBuilder contained within SelectionDAGISel has a map (NodeMap) b/w Value (Instruction) and corrosponding dag value (SDValue).</span><div dir="auto" style="font-family:sans-serif;font-size:16.512px" class=""><br class=""></div><div dir="auto" style="font-family:sans-serif;font-size:16.512px" class="">Isn't that usable for your purpose.</div><div dir="auto" style="font-family:sans-serif;font-size:16.512px" class=""><br class=""></div><div dir="auto" style="font-family:sans-serif;font-size:16.512px" class="">Thanks,</div><div dir="auto" style="font-family:sans-serif;font-size:16.512px" class="">Jatin</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On 27 Nov 2017 18:21, "Jonathan via llvm-dev" <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:<br type="attribution" class=""><blockquote class="gmail_quote" style="margin:0 0 0 ..8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word" class="">I am working on llvm gpu backend. The instruction metadata can only get in IR (class instruction). In DAG stage, the instructions are reordered, so I cannot map the metadata to correct instruction if I cannot access instruction from DAG or MachineInstr structure.<div class=""><br class=""></div><div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Nov 26, 2017, at 11:02 PM, Ryan Taylor <<a href="mailto:ryta1203@gmail.com" target="_blank" class="">ryta1203@gmail.com</a>> wrote:</div><br class="m_-6393046661858355501Apple-interchange-newline"><div class=""><div dir="auto" class="">It might be a more useful to know what it is you need from the IR in the DAG or what it is you r trying to do?<div dir="auto" class=""><br class=""></div><div dir="auto" class=""><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Nov 25, 2017 7:59 PM, "Jonathan via llvm-dev" <<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a>> wrote:<br type="attribution" class=""><blockquote class="gmail_quote">The llvm backend uses class Instruction in IR handle stage, create SDVaule and DAG in DAG translation stage and class MachineInstr in Machine instruction translation stage.<br class="">
Can I access class Instruction from DAG structure or stage, or access DAG and Instruction from MachineInstr structure or stage?<br class="">
<br class="">
Jonathan<br class="">
______________________________<wbr class="">_________________<br class="">
LLVM Developers mailing list<br class="">
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank" class="">llvm-dev@lists.llvm.org</a><br class="">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/<wbr class="">mailman/listinfo/llvm-dev</a><br class="">
</blockquote></div></div>
</div></blockquote></div><br class=""></div></div><br class="">______________________________<wbr class="">_________________<br class="">
LLVM Developers mailing list<br class="">
<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/<wbr class="">mailman/listinfo/llvm-dev</a><br class="">
<br class=""></blockquote></div></div>
</div></blockquote></div><br class=""></div></body></html>