[LLVMdev] Alias analysis result

Welson Sun welson.sun at gmail.com
Tue Sep 18 12:17:22 PDT 2012


Hi Duncan,

In case "my_pass" is compiled into a standalone executable, how can I run
the specific alias analysis in the code?

Thanks

On Thu, Mar 8, 2012 at 8:55 AM, Duncan Sands <baldrick at free.fr> wrote:

> Hi,
>
> > That's the reason I have defined getAnalysisUsage method. Isn't that the
> > right way to do it?
>
> no, that gives you access to whatever alias analysis has been computed, but
> it doesn't specify what kind of alias analysis should be computed (there
> are
> several).  Try something like this:
>    opt -load=my_pass.so -basic-aa -run_my_pass ...
> Ciao, Duncan.
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>



-- 
Welson

Phone: (408) 418-8385
Email:  welson.sun at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120918/a087767a/attachment.html>


More information about the llvm-dev mailing list