<div dir="rtl"><div dir="ltr">It may be easiest to copy an existing MachineFunctionPass, chaning file and class names as appropriate.</div><div dir="ltr"><br></div><div dir="ltr"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div dir="ltr">2016-03-03 12:25 GMT+02:00 Balasaheb Dabhade via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span>:</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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/" target="_blank">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>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>