[LLVMdev] How to print machine code of JIT IR
ChiaLun
h3355626 at msn.com
Thu Dec 20 22:47:37 PST 2012
Hi,
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());
builder.setEngineKind(EngineKind::JIT);
*
TargetMachine * tm = builder.selectTarget();
tm->Options.PrintMachineCode = true;*
engine = builder.create();
and somewhere in my code, I use
runJITonFunction();
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