Look I have written a PRE pass. opt is running that pass. I have included my pass name there in include/llvm/Support/StandardPasses.h file. To do that, I have got some error. Because it also requires the definition of the pass in some other file also. I observed how gvn pre pass is added to the pass list. I had followed the same way, but failed. Cna you kindly tell what needs to be done in this regard?<br>
<br><div class="gmail_quote">On 23 August 2010 00:13, Nick Lewycky <span dir="ltr"><<a href="mailto:nicholas@mxc.ca">nicholas@mxc.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Soumya_Prasad_Ukil wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Pls help.<br>
</blockquote>
<br>
You didn't say what was actually running the passes. (llvm-gcc? clang? opt -some -passes?) What you probably want is to modify one of the lists in include/llvm/Support/StandardPasses.h.<br>
<br>
Nick<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="im">
<br>
On 21 August 2010 17:32, Soumya_Prasad_Ukil <<a href="mailto:ukil.soumya@gmail.com" target="_blank">ukil.soumya@gmail.com</a><br></div><div class="im">
<mailto:<a href="mailto:ukil.soumya@gmail.com" target="_blank">ukil.soumya@gmail.com</a>>> wrote:<br>
<br>
I have written a simple pass. I have been successful to execute it.<br>
I want LLVM to execute it. I don't know how to include a pass in<br>
llvm actual pass list, such it automatically invokes it just like<br>
GVNPre pass or some other pass. They have already been limked in<br>
llvm actual pass list.<br>
<br>
--<br>
regards,<br>
soumya prasad ukil<br>
<br>
<br>
<br>
<br>
--<br>
regards,<br>
soumya prasad ukil<br>
<br>
<br>
<br></div>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu" target="_blank">LLVMdev@cs.uiuc.edu</a> <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote>
<br>
</blockquote></div><br><br clear="all"><br>-- <br>regards,<br>soumya prasad ukil<br>