[LLVMdev] Printing x86 ASM for Function
Nicolas Geoffray
nicolas.geoffray at lip6.fr
Mon Mar 16 23:51:25 PDT 2009
Dear Maxime,
Nyx wrote:
> Hello,
>
> I would like to know how to go about printing the x86 assembly output for a
> compiled function (I'm using the JIT). I saw there is a X86IntelAsmPrinter
> on doxygen. However, it takes several arguments I don't know how to fill in.
> Is there a helper function to create such a pass? Once I have the pass
> created, do I just add it to a FunctionPassManager?
>
>
X86IntelAsmPrinter is used when compiling to an assembly file. If you
want to see the output of your jitted code, you need udis (./configure
--with-udis=...) and that the macro NDEBUG is not defined (see
lib/ExecutionEngine/JIT/JITEmitter.cpp line 1156).
Nicolas
> Thank you for your time,
>
> - Maxime
>
More information about the llvm-dev
mailing list