Hi Duncan,<div><br></div><div>In case "my_pass" is compiled into a standalone executable, how can I run the specific alias analysis in the code?</div><div><br></div><div>Thanks</div><div><br><div class="gmail_quote">
On Thu, Mar 8, 2012 at 8:55 AM, Duncan Sands <span dir="ltr"><<a href="mailto:baldrick@free.fr" target="_blank">baldrick@free.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<div class="im"><br>
> That's the reason I have defined getAnalysisUsage method. Isn't that the<br>
> right way to do it?<br>
<br>
</div>no, that gives you access to whatever alias analysis has been computed, but<br>
it doesn't specify what kind of alias analysis should be computed (there are<br>
several).  Try something like this:<br>
   opt -load=my_pass.so -basic-aa -run_my_pass ...<br>
Ciao, Duncan.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Welson<div><br></div><div>Phone: (408) 418-8385</div><div>Email:  <a href="mailto:welson.sun@gmail.com" target="_blank">welson.sun@gmail.com</a></div>
<div><br></div><br>
</div>