<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 7/13/16 9:00 AM, Stephen Thomas via
llvm-dev wrote:<br>
</div>
<blockquote
cite="mid:CA+U9gD1ZtF0eC5yqFgGVYPm0L7DVz=1jPYxtJYjO92RESD+-Vg@mail.gmail.com"
type="cite">
<meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I often find myself staring at IR and wanting to look at
the C source code it corresponds to. To do so, I look up the
debug identifier for the given IR line, scroll to the bottom
of the IR file to find the debug identifier, look at the debug
location (source and column), and then look at the source
file. Too many steps. What would be great is a tool that took
two files, i.e., a .c file and a .bc file, and printed out the
IR with the corresponding C source right beneath each IR
line. </div>
<div><br>
</div>
<div>It wouldn't be too hard for me to write such a tool, but I
thought I'd check to see if something already exists before I
reinvent the wheel. Is there anything out there?</div>
</div>
</blockquote>
<br>
To the best of my knowledge, there is no tool that does this.<br>
<br>
Regards,<br>
<br>
John Criswell<br>
<br>
<blockquote
cite="mid:CA+U9gD1ZtF0eC5yqFgGVYPm0L7DVz=1jPYxtJYjO92RESD+-Vg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br>
</div>
<div>Thanks,</div>
<div>Steve </div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
</blockquote>
<br>
<p><br>
</p>
<pre class="moz-signature" cols="72">--
John Criswell
Assistant Professor
Department of Computer Science, University of Rochester
<a class="moz-txt-link-freetext" href="http://www.cs.rochester.edu/u/criswell">http://www.cs.rochester.edu/u/criswell</a></pre>
</body>
</html>