<div dir="ltr"><span style="font-size:12.8px">Dear All,</span><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">I am writing the MachineFunctionPass passes in LLVM.  I am following the steps from following link but not able to proceced further. The steps are not clears since it does mention in which folder we need to store the file and how to compile.</div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px"><a href="http://web.archive.org/web/20140725235132/http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-January/037496.html" target="_blank">http://web.archive.org/web/20140725235132/http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-January/037496.html</a><br></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px"><a href="http://www.gabriel.urdhr.fr/2014/09/26/adding-a-llvm-pass/">http://www.gabriel.urdhr.fr/2014/09/26/adding-a-llvm-pass/</a></span></div><div><br></div><div><a href="http://adriansampson.net/blog/llvm.html" target="_blank">http://adriansampson.net/blog/llvm.html</a></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">It would be  great  if some one share sample code of codegen pass(</span><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">MachineFunctionPass</span><span style="font-size:12.8px">) and steps need to be followed to write LLVM </span><span style="font-family:Arial,Helvetica,sans-serif;font-size:13px">MachineFunctionPass </span><span style="font-size:12.8px">pass, which I wanted run after global register allocation pass.</span></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Thanks,</div><div style="font-size:12.8px">Bala</div></div>