[llvm-dev] IR -> source pretty printing?

John Criswell via llvm-dev llvm-dev at lists.llvm.org
Wed Jul 13 07:53:58 PDT 2016


On 7/13/16 9:00 AM, Stephen Thomas via llvm-dev wrote:
> Hi,
>
> 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.
>
> 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?

To the best of my knowledge, there is no tool that does this.

Regards,

John Criswell

>
> Thanks,
> Steve
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


-- 
John Criswell
Assistant Professor
Department of Computer Science, University of Rochester
http://www.cs.rochester.edu/u/criswell

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160713/3d9e99a6/attachment.html>


More information about the llvm-dev mailing list