<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">See if this thread <a href="http://lists.llvm.org/pipermail/llvm-dev/2017-November/119274.html">http://lists.llvm.org/pipermail/llvm-dev/2017-November/119274.html</a> help.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-05 4:12 GMT+08:00 Pedro Lopes via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Is there a way to map a MachineInstr to the respective LLVM IR using a<br>
MachineFunctionPass (or something else) in my backend?<br>
<br>
I need to read some metadata associated with LLVM IR instructions and<br>
I was thinking of using some debug information (DebugLoc?) to do so.<br>
However, By inspecting the LLVM source code I have not been able to<br>
find any mapping between a MachineInstr and a LLVM IR Instruction.<br>
<br>
Thanks,<br>
Tiago<br>
______________________________<wbr>_________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/llvm-dev</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div>Wei-Ren Chen (陳韋任)<br>Homepage: <a href="https://people.cs.nctu.edu.tw/~chenwj" target="_blank">https://people.cs.nctu.edu.tw/~chenwj</a></div></div></div>
</div>