I would like to go through some LLVM IR code that I created. The code is syntactic and type valid for llc and lli, but the results are not what I expected.
The columns are large enough that I was unsuccessful by simply reading the error, and it is difficult for me to create a smaller example with the same error.
I decided that I could use something like a debugger, but for LLVM IR. In other words, I want to go through the llvm code, examine the "infinite" registers (given the names in the LLVM IR file) and memory locations, set breakpoints until I find where my code went wrong.
I looked through lli and lldb , but none of them are the tool I'm looking for. lli will run my code, but will not let me step by step. lldb it seems that the code was generated by C-fronts.
Am I wrong about lldb and lli ? Does anyone know a tool that does even 50% of what I want?
source share