[LLVMdev] Combining Branch Statements - Missing Optimization Pass?

Kenneth Uildriks kennethuil at gmail.com
Fri May 28 06:57:10 PDT 2010


On Fri, May 28, 2010 at 8:35 AM, Curtis Faith <curtis at curtisfaith.com> wrote:
> Finally, I want to look at the machine code to see if perhaps this sort of
> thing is handled by the optimization passes during machine code emission but
> I can't figure out how to easily print out the machine code. Is there an
> easy way to add a createMachineFunctionPrinterPass pass to the
> ExecutionEngine's JIT so that it will print out the machine code after all
> the optimizations have been done and the code has been generated for
> MachineCodeEmission?
> Thank you in advance,
> Curtis

You could always have your code save the module you're JITting off of
and then run that module through llc.




More information about the llvm-dev mailing list