Hi, Is it possible to use debug info in the back end? for example can we get the source code line for MachineInstructions? Best, Mohammad -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160309/5aae5bd2/attachment-0001.html>
On 9 March 2016 at 11:01, Mohammad Norouzi via llvm-dev <llvm-dev at lists.llvm.org> wrote:> Is it possible to use debug info in the back end? for example can we get the > source code line for MachineInstructions?There's MachineInstr::getDebugLoc, though as usual you can't rely on every instruction having a value, or it being correct if they do. Cheers. Tim.