[llvm-dev] Getting the original high-level code

Lang Hames via llvm-dev llvm-dev at lists.llvm.org
Tue Mar 15 17:15:04 PDT 2016


Hi Marwa,

There's no generic way to de-compile IR, but if the IR has debug info
attached you may be able to find the path to the original source file.

- Lang.

On Tue, Mar 15, 2016 at 10:43 AM, David Blaikie via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> There's nothing built into LLVM and Clang for going backwards through the
> lowering chain (MC->IR, IR->C++, etc). I think some third parties have
> built some pieces of this, but of course it is rather lossy.
>
> On Tue, Mar 15, 2016 at 6:22 AM, marwayusuf at feng.bu.edu.eg via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
>> Dear All
>>
>> Is there is a way I can get the original hogh level code (e.g c++ code)
>> of an IR function within MCJIT?
>>
>>
>> Regards,
>> Marwa Yusuf
>> Teaching Assistant - Computer Engineering Department
>> Faculty of Engineering - Benha University
>> E-JUST PhD Student
>> Computer Science & Engineering Dept.
>>
>> _______________________________________________
>> LLVM Developers mailing list
>> llvm-dev at lists.llvm.org
>> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>>
>>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160315/fb328416/attachment.html>


More information about the llvm-dev mailing list