[LLVMdev] Print native code emitted by the JIT

Óscar Fuentes ofv at wanadoo.es
Mon Mar 30 08:18:01 PDT 2009


Olivier Meurant <meurant.olivier at gmail.com> writes:

[snip]

> I have probably miss an initialization or something like this, but I
> can't figure out. Do you have any ideas ?

Set this global variable:

       llvm::PrintMachineCode = 1;

This seems to print the native assembly machine code after each pass or
optimization. It's quite verbose.


-- 
Oscar




More information about the llvm-dev mailing list