[LLVMdev] asmwriting times (was Re: LLVMContext: Suggestions for API Changes)
Jim Grosbach
grosbach at apple.com
Mon Aug 24 15:13:19 PDT 2009
On Aug 24, 2009, at 3:05 PM, Ivo wrote:
> On Monday 24 August 2009 23:27, Albert Graef wrote:
>> Thank you also for the hint about bitcode reading/writing. I'm
>> aware of
>> this, but I actually prefer the .ll output because it's human-
>> readable,
>> which is great for debugging purposes. I might add a bitcode writer
>> some
>> time, but it's not a high priority for me right now.
>
> Isn't there a tool to turn bitcode into human readable text? I have
> been
> reading about the internals of LLVM lately (I'm planning on making a
> new
> backend) and the whole infrastructure reminds me a lot of the
> Amsterdam
> Compiler Kit (ACK). They had a program to turn binary EM code into
> ASCII,
> making it easy to dump the output to |more or less during debugging.
>
There's the llvm disassembler (llvm-dis), which works nicely. Albert,
would that work for you? Might be a way to get a bit more performance
with a mild convenience cost (needing to run the disassembler in order
to examine IR) during debugging.
-Jim
More information about the llvm-dev
mailing list