May 2015
Intermediate to advanced
296 pages
5h 10m
English
In this recipe, you will convert LLVM bitcode back to LLVM IR. Well, this is actually possible using the LLVM disassembler tool called llvm-dis.
To do this, you need the llvm-dis tool installed.
To see how the bitcode file is getting converted to IR, use the test.bc file generated in the recipe Converting IR to LLVM Bitcode. The test.bc file is provided as the input to the llvm-dis tool. Now proceed with the following steps:
$ llvm-dis test.bc –o test.ll
| $ cat test.ll ; ModuleID = 'test.bc' define i32 @mult(i32 ...
Read now
Unlock full access