James Courtier-Dutton via llvm-dev
2018-Aug-28 20:40 UTC
[llvm-dev] Execute / Interpret LLVM IR Bitcode
Hi, I know their are various tools that can take LLVM IR Bitcode and JIT it and execute it. Is there anything that can do the equivalent but at the LL\VM IR Bitcode level? So, that for example, I could set some initial conditions, and then single step through the IR Bitcode function, and pause it and print out any of the SSA values that I wish? Kind Regards James
Stefan Gränitz via llvm-dev
2018-Aug-28 21:47 UTC
[llvm-dev] Execute / Interpret LLVM IR Bitcode
Hi James I wanted to do something like this last year and found llvm-dbas, a hack of the LLVM assembler on GitHub. It simply adds line numbers to LLVM IR. This way you can do the stepping, but no inspection. I remember people asking for this from time to time, but never saw a real solution. Would be interesting though! https://github.com/thestr4ng3r/llvm-dbas Cheers Stefan Am 28.08.18 um 22:40 schrieb James Courtier-Dutton via llvm-dev:> Hi, > > I know their are various tools that can take LLVM IR Bitcode and JIT > it and execute it. > Is there anything that can do the equivalent but at the LL\VM IR Bitcode level? > > So, that for example, I could set some initial conditions, and then > single step through the IR Bitcode function, and pause it and print > out any of the SSA values that I wish? > > Kind Regards > > James > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev-- https://weliveindetail.github.io/blog/ https://cryptup.org/pub/stefan.graenitz at gmail.com
mayuyu.io via llvm-dev
2018-Aug-29 03:52 UTC
[llvm-dev] Execute / Interpret LLVM IR Bitcode
Just saying since the backend will be doing other transforms this is not exactly what James wants. In order to achieve what he needs we need a LLVM BC interpreter which simply doesn’t exist yet, and probably will never be. Zhang> 在 2018年8月29日,05:47,Stefan Gränitz via llvm-dev <llvm-dev at lists.llvm.org> 写道: > > Hi James > > I wanted to do something like this last year and found llvm-dbas, a hack > of the LLVM assembler on GitHub. It simply adds line numbers to LLVM IR. > This way you can do the stepping, but no inspection. I remember people > asking for this from time to time, but never saw a real solution. Would > be interesting though! > > https://github.com/thestr4ng3r/llvm-dbas > > Cheers > Stefan > >> Am 28.08.18 um 22:40 schrieb James Courtier-Dutton via llvm-dev: >> Hi, >> >> I know their are various tools that can take LLVM IR Bitcode and JIT >> it and execute it. >> Is there anything that can do the equivalent but at the LL\VM IR Bitcode level? >> >> So, that for example, I could set some initial conditions, and then >> single step through the IR Bitcode function, and pause it and print >> out any of the SSA values that I wish? >> >> Kind Regards >> >> James >> _______________________________________________ >> LLVM Developers mailing list >> llvm-dev at lists.llvm.org >> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev > > -- > https://weliveindetail.github.io/blog/ > https://cryptup.org/pub/stefan.graenitz at gmail.com > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev