[llvm-commits] patch for printing machine instrs after a specified pass

Bin Zeng bzeng at apple.com
Fri May 25 17:51:46 PDT 2012


Hi all,

My name is Bin Zeng and an intern working on a project to serialize MachineInstrs 
in the backend. This patch adds a insertPass API to insert a pass before each instance
of another pass and enhances the existing -print-machineinstrs so that the MachineInstrs
after a specific pass can be printed. For instance, to print the MachineInstrs after branch-folder
pass, you can do: $llc -O3 -print-machineinstrs=branch-folder filename.bc -o filename.s 
Also, the command line option is back compatible. You can dump MachineInstrs after all
the passes. 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-0.8
Type: application/octet-stream
Size: 7799 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120525/caae86d8/attachment.obj>
-------------- next part --------------


Thanks for reading. 
-Bin


More information about the llvm-commits mailing list