[LLVMdev] How to print machine code of JIT IR

ChiaLun h3355626 at msn.com
Thu Dec 20 22:47:37 PST 2012

  I am using LLVM 3.1, and wants to print the machine code of JIT IR

I try the following method

EngineBuilder builder(&ctx.getModule());
   TargetMachine * tm = builder.selectTarget();
   tm->Options.PrintMachineCode = true;*
    engine = builder.create();

and somewhere in my code, I use


Another question is that I am not sure when JIT would dump machine code.

Does anyone know how to do that ?

Chia Lun Liu

View this message in context: http://llvm.1065342.n5.nabble.com/How-to-print-machine-code-of-JIT-IR-tp52776.html
Sent from the LLVM - Dev mailing list archive at Nabble.com.

More information about the llvm-dev mailing list