This is now valid HTML 4.01 Strict.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9475 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Misha Brukman 2003-10-24 18:06:11 +00:00
parent 75f258ebff
commit 3896be2ecd

View File

@ -1,8 +1,8 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" href="llvm.css" type="text/css">
<link rel="stylesheet" href="llvm.css" type="text/css" media="screen" />
<title>Alias Analysis Infrastructure in LLVM</title> <title>Alias Analysis Infrastructure in LLVM</title>
</head> </head>
@ -15,40 +15,41 @@
<ol> <ol>
<li><a href="#introduction">Introduction</a></li> <li><a href="#introduction">Introduction</a></li>
<li><a href="#overview">AliasAnalysis Overview</a></li> <li><a href="#overview">AliasAnalysis Overview</a>
<ul> <ul>
<li><a href="#pointers">Representation of Pointers</a></li> <li><a href="#pointers">Representation of Pointers</a></li>
<li><a href="#MustMayNo">Must, May, and No Alias Responses</a></li> <li><a href="#MustMayNo">Must, May, and No Alias Responses</a></li>
<li><a href="#ModRefInfo">The <tt>getModRefInfo</tt> methods</a></li> <li><a href="#ModRefInfo">The <tt>getModRefInfo</tt> methods</a></li>
</ul> </ul></li>
<li><a href="#writingnew">Writing a new AliasAnalysis Implementation</a></li> <li><a href="#writingnew">Writing a new AliasAnalysis Implementation</a>
<ul> <ul>
<li><a href="#passsubclasses">Different Pass styles</a></li> <li><a href="#passsubclasses">Different Pass styles</a></li>
<li><a href="#requiredcalls">Required initialization calls</a></li> <li><a href="#requiredcalls">Required initialization calls</a></li>
<li><a href="#interfaces">Interfaces which may be specified</a></li> <li><a href="#interfaces">Interfaces which may be specified</a></li>
<li><a href="#chaining">The AliasAnalysis chaining behavior</a></li> <li><a href="#chaining">The AliasAnalysis chaining behavior</a></li>
<li><a href="#implefficiency">Efficiency Issues</a></li> <li><a href="#implefficiency">Efficiency Issues</a></li>
</ul> </ul></li>
<li><a href="#using">Using AliasAnalysis results</a></li> <li><a href="#using">Using AliasAnalysis results</a>
<ul> <ul>
<li><a href="#loadvn">Using the <tt>-load-vn</tt> Pass</a></li> <li><a href="#loadvn">Using the <tt>-load-vn</tt> Pass</a></li>
<li><a href="#ast">Using the <tt>AliasSetTracker</tt> class</a></li> <li><a href="#ast">Using the <tt>AliasSetTracker</tt> class</a></li>
<li><a href="#direct">Using the AliasAnalysis interface directly</a></li> <li><a href="#direct">Using the AliasAnalysis interface directly</a></li>
</ul> </ul></li>
<li><a href="#tools">Helpful alias analysis related tools</a></li>
<li><a href="#tools">Helpful alias analysis related tools</a>
<ul> <ul>
<li><a href="#no-aa">The <tt>-no-aa</tt> pass</a></li> <li><a href="#no-aa">The <tt>-no-aa</tt> pass</a></li>
<li><a href="#print-alias-sets">The <tt>-print-alias-sets</tt> pass</a></li> <li><a href="#print-alias-sets">The <tt>-print-alias-sets</tt> pass</a></li>
<li><a href="#count-aa">The <tt>-count-aa</tt> pass</a></li> <li><a href="#count-aa">The <tt>-count-aa</tt> pass</a></li>
<li><a href="#aa-eval">The <tt>-aa-eval</tt> pass</a></li> <li><a href="#aa-eval">The <tt>-aa-eval</tt> pass</a></li>
</ul> </ul></li>
</ul>
<p><b>Written by <a href="mailto:sabre@nondot.org">Chris Lattner</a></b></p>
</ol> </ol>
<div class="doc_text">
<p><b>Written by <a href="mailto:sabre@nondot.org">Chris Lattner</a></b></p>
</div>
<!-- *********************************************************************** --> <!-- *********************************************************************** -->
<div class="doc_section"> <div class="doc_section">
@ -113,17 +114,15 @@ mod/ref information for arbitrary instructions.
</div> </div>
<div class="doc_text"> <div class="doc_text">
<p>
Most importantly, the AliasAnalysis class provides several methods which are <p>Most importantly, the AliasAnalysis class provides several methods which are
used to query whether or not pointers alias, whether function calls can modify used to query whether or not pointers alias, whether function calls can modify
or read memory, etc. or read memory, etc.</p>
</p>
<p> <p>Representing memory objects as a starting address and a size is critically
Representing memory objects as a starting address and a size is critically
important for precise Alias Analyses. For example, consider this (silly) C important for precise Alias Analyses. For example, consider this (silly) C
code: code:</p>
</p>
<p>
<pre> <pre>
int i; int i;
char C[2]; char C[2];
@ -134,15 +133,13 @@ code:
C[1] = A[9-i]; /* One byte store */ C[1] = A[9-i]; /* One byte store */
} }
</pre> </pre>
</p>
<p> <p>In this case, the <tt>basicaa</tt> pass will disambiguate the stores to
In this case, the <tt>basicaa</tt> pass will disambiguate the stores to
<tt>C[0]</tt> and <tt>C[1]</tt> because they are accesses to two distinct <tt>C[0]</tt> and <tt>C[1]</tt> because they are accesses to two distinct
locations one byte apart, and the accesses are each one byte. In this case, the locations one byte apart, and the accesses are each one byte. In this case, the
LICM pass can use store motion to remove the stores from the loop. In LICM pass can use store motion to remove the stores from the loop. In
constrast, the following code: constrast, the following code:</p>
</p>
<p>
<pre> <pre>
int i; int i;
char C[2]; char C[2];
@ -153,13 +150,12 @@ constrast, the following code:
C[1] = A[9-i]; /* One byte store */ C[1] = A[9-i]; /* One byte store */
} }
</pre> </pre>
</p>
<p> <p>In this case, the two stores to C do alias each other, because the access to
In this case, the two stores to C do alias each other, because the access to the the <tt>&amp;C[0]</tt> element is a two byte access. If size information wasn't
<tt>&amp;C[0]</tt> element is a two byte access. If size information wasn't
available in the query, even the first case would have to conservatively assume available in the query, even the first case would have to conservatively assume
that the accesses alias. that the accesses alias.</p>
</p>
</div> </div>
<!-- ======================================================================= --> <!-- ======================================================================= -->
@ -168,18 +164,17 @@ that the accesses alias.
</div> </div>
<div class="doc_text"> <div class="doc_text">
<p>
An Alias Analysis implementation can return one of three responses: MustAlias, <p>An Alias Analysis implementation can return one of three responses:
MayAlias, and NoAlias. The No and May alias results are obvious: if the two MustAlias, MayAlias, and NoAlias. The No and May alias results are obvious: if
pointers may never equal each other, return NoAlias, if they might, return the two pointers may never equal each other, return NoAlias, if they might,
MayAlias. return MayAlias.</p>
</p>
<p> <p>The Must Alias response is trickier though. In LLVM, the Must Alias response
The Must Alias response is trickier though. In LLVM, the Must Alias response
may only be returned if the two memory objects are guaranteed to always start at may only be returned if the two memory objects are guaranteed to always start at
exactly the same location. If two memory objects overlap, but do not start at exactly the same location. If two memory objects overlap, but do not start at
the same location, MayAlias must be returned. the same location, MayAlias must be returned.</p>
</p>
</div> </div>
<!-- ======================================================================= --> <!-- ======================================================================= -->
@ -188,12 +183,12 @@ the same location, MayAlias must be returned.
</div> </div>
<div class="doc_text"> <div class="doc_text">
<p>
The <tt>getModRefInfo</tt> methods return information about whether the <p>The <tt>getModRefInfo</tt> methods return information about whether the
execution of an instruction can read or modify a memory location. Mod/Ref execution of an instruction can read or modify a memory location. Mod/Ref
information is always conservative: if an action <b>may</b> read a location, Ref information is always conservative: if an action <b>may</b> read a location, Ref
is returned. is returned.</p>
</p>
</div> </div>
<!-- *********************************************************************** --> <!-- *********************************************************************** -->
@ -203,13 +198,13 @@ is returned.
<!-- *********************************************************************** --> <!-- *********************************************************************** -->
<div class="doc_text"> <div class="doc_text">
<p>
Writing a new alias analysis implementation for LLVM is quite straight-forward. <p>Writing a new alias analysis implementation for LLVM is quite
There are already several implementations that you can use for examples, and the straight-forward. There are already several implementations that you can use
following information should help fill in any details. For a minimal example, for examples, and the following information should help fill in any details.
take a look at the <a href="/doxygen/structNoAA.html"><tt>no-aa</tt></a> For a minimal example, take a look at the <a
implementation. href="/doxygen/structNoAA.html"><tt>no-aa</tt></a> implementation.</p>
</p>
</div> </div>
<!-- ======================================================================= --> <!-- ======================================================================= -->
@ -218,13 +213,13 @@ implementation.
</div> </div>
<div class="doc_text"> <div class="doc_text">
<p>
The first step to determining what type of <a href="WritingAnLLVMPass.html">LLVM <p>The first step to determining what type of <a
pass</a> you need to use for your Alias Analysis. As is the case with most href="WritingAnLLVMPass.html">LLVM pass</a> you need to use for your Alias
other analyses and transformations, the answer should be fairly obvious from Analysis. As is the case with most other analyses and transformations, the
what type of problem you are trying to solve: answer should be fairly obvious from what type of problem you are trying to
</p> solve:</p>
<p>
<ol> <ol>
<li>If you require interprocedural analysis, it should be a <li>If you require interprocedural analysis, it should be a
<tt>Pass</tt>.</li> <tt>Pass</tt>.</li>
@ -233,13 +228,12 @@ what type of problem you are trying to solve:
<li>If you don't need to look at the program at all, subclass <li>If you don't need to look at the program at all, subclass
<tt>ImmutablePass</tt>.</li> <tt>ImmutablePass</tt>.</li>
</ol> </ol>
</p>
<p> <p>In addition to the pass that you subclass, you should also inherit from the
In addition to the pass that you subclass, you should also inherit from the
<tt>AliasAnalysis</tt> interface, of course, and use the <tt>AliasAnalysis</tt> interface, of course, and use the
<tt>RegisterAnalysisGroup</tt> template to register as an implementation of <tt>RegisterAnalysisGroup</tt> template to register as an implementation of
<tt>AliasAnalysis</tt>. <tt>AliasAnalysis</tt>.</p>
</p>
</div> </div>
<!-- ======================================================================= --> <!-- ======================================================================= -->
@ -248,31 +242,28 @@ In addition to the pass that you subclass, you should also inherit from the
</div> </div>
<div class="doc_text"> <div class="doc_text">
<p>
Your subclass of AliasAnalysis is required to invoke two methods on the <p>Your subclass of AliasAnalysis is required to invoke two methods on the
AliasAnalysis base class: <tt>getAnalysisUsage</tt> and AliasAnalysis base class: <tt>getAnalysisUsage</tt> and
<tt>InitializeAliasAnalysis</tt>. In particular, your implementation of <tt>InitializeAliasAnalysis</tt>. In particular, your implementation of
<tt>getAnalysisUsage</tt> should explicitly call into the <tt>getAnalysisUsage</tt> should explicitly call into the
<tt>AliasAnalysis::getAnalysisUsage</tt> method in addition to doing any <tt>AliasAnalysis::getAnalysisUsage</tt> method in addition to doing any
declaring any pass dependencies your pass has. Thus you should have something declaring any pass dependencies your pass has. Thus you should have something
like this: like this:</p>
</p>
<p>
<pre> <pre>
void getAnalysisUsage(AnalysisUsage &amp;AU) const { void getAnalysisUsage(AnalysisUsage &amp;AU) const {
AliasAnalysis::getAnalysisUsage(AU); AliasAnalysis::getAnalysisUsage(AU);
<i>// declare your dependencies here.</i> <i>// declare your dependencies here.</i>
} }
</pre> </pre>
</p>
<p> <p>Additionally, your must invoke the <tt>InitializeAliasAnalysis</tt> method
Additionally, your must invoke the <tt>InitializeAliasAnalysis</tt> method from from your analysis run method (<tt>run</tt> for a <tt>Pass</tt>,
your analysis run method (<tt>run</tt> for a <tt>Pass</tt>,
<tt>runOnFunction</tt> for a <tt>FunctionPass</tt>, <tt>runOnBasicBlock</tt> for <tt>runOnFunction</tt> for a <tt>FunctionPass</tt>, <tt>runOnBasicBlock</tt> for
a <tt>BasicBlockPass</tt>, or <tt>InitializeAliasAnalysis</tt> for an a <tt>BasicBlockPass</tt>, or <tt>InitializeAliasAnalysis</tt> for an
<tt>ImmutablePass</tt>). For example (as part of a <tt>Pass</tt>): <tt>ImmutablePass</tt>). For example (as part of a <tt>Pass</tt>):</p>
</p>
<p>
<pre> <pre>
bool run(Module &amp;M) { bool run(Module &amp;M) {
InitializeAliasAnalysis(this); InitializeAliasAnalysis(this);
@ -280,7 +271,7 @@ a <tt>BasicBlockPass</tt>, or <tt>InitializeAliasAnalysis</tt> for an
return false; return false;
} }
</pre> </pre>
</p>
</div> </div>
<!-- ======================================================================= --> <!-- ======================================================================= -->
@ -289,13 +280,13 @@ a <tt>BasicBlockPass</tt>, or <tt>InitializeAliasAnalysis</tt> for an
</div> </div>
<div class="doc_text"> <div class="doc_text">
<p>
All of the <a href="/doxygen/classAliasAnalysis.html">AliasAnalysis</a> virtual <p>All of the <a href="/doxygen/classAliasAnalysis.html">AliasAnalysis</a>
methods default to providing conservatively correct information (returning "May" virtual methods default to providing conservatively correct information
Alias and "Mod/Ref" for alias and mod/ref queries respectively). Depending on (returning "May" Alias and "Mod/Ref" for alias and mod/ref queries
the capabilities of the analysis you are implementing, you just override the respectively). Depending on the capabilities of the analysis you are
interfaces you can improve. implementing, you just override the interfaces you can improve.</p>
</p>
</div> </div>
<!-- ======================================================================= --> <!-- ======================================================================= -->
@ -304,15 +295,15 @@ interfaces you can improve.
</div> </div>
<div class="doc_text"> <div class="doc_text">
<p>
With only two special exceptions (the <tt>basicaa</tt> and <a <p>With only two special exceptions (the <tt>basicaa</tt> and <a
href="#no-aa"><tt>no-aa</tt></a> passes) every alias analysis pass should chain href="#no-aa"><tt>no-aa</tt></a> passes) every alias analysis pass should chain
to another alias analysis implementation (for example, you could specify to another alias analysis implementation (for example, you could specify
"<tt>-basic-aa -ds-aa -andersens-aa -licm</tt>" to get the maximum benefit from "<tt>-basic-aa -ds-aa -andersens-aa -licm</tt>" to get the maximum benefit from
the three alias analyses). To do this, simply "Require" AliasAnalysis in your the three alias analyses). To do this, simply "Require" AliasAnalysis in your
<tt>getAnalysisUsage</tt> method, and if you need to return a conservative <tt>getAnalysisUsage</tt> method, and if you need to return a conservative
MayAlias or Mod/Ref result, simply chain to a lower analysis. MayAlias or Mod/Ref result, simply chain to a lower analysis.</p>
</p>
</div> </div>
<!-- ======================================================================= --> <!-- ======================================================================= -->
@ -321,14 +312,14 @@ MayAlias or Mod/Ref result, simply chain to a lower analysis.
</div> </div>
<div class="doc_text"> <div class="doc_text">
<p>
From the LLVM perspective, the only thing you need to do to provide an efficient <p>From the LLVM perspective, the only thing you need to do to provide an
alias analysis is to make sure that alias analysis <b>queries</b> are serviced efficient alias analysis is to make sure that alias analysis <b>queries</b> are
quickly. The actual calculation of the alias analysis results (the "run" serviced quickly. The actual calculation of the alias analysis results (the
method) is only performed once, but many (perhaps duplicate) queries may be "run" method) is only performed once, but many (perhaps duplicate) queries may
performed. Because of this, try to move as much computation to the run method be performed. Because of this, try to move as much computation to the run
as possible (within reason). method as possible (within reason).</p>
</p>
</div> </div>
<!-- *********************************************************************** --> <!-- *********************************************************************** -->
@ -338,10 +329,10 @@ as possible (within reason).
<!-- *********************************************************************** --> <!-- *********************************************************************** -->
<div class="doc_text"> <div class="doc_text">
<p>
There are several different ways to use alias analysis results. In order of <p>There are several different ways to use alias analysis results. In order of
preference, these are... preference, these are...</p>
</p>
</div> </div>
<!-- ======================================================================= --> <!-- ======================================================================= -->
@ -350,13 +341,13 @@ preference, these are...
</div> </div>
<div class="doc_text"> <div class="doc_text">
<p>
The <tt>load-vn</tt> pass uses alias analysis to provide value numbering <p>The <tt>load-vn</tt> pass uses alias analysis to provide value numbering
information for <tt>load</tt> instructions. If your analysis or transformation information for <tt>load</tt> instructions. If your analysis or transformation
can be modelled in a form that uses value numbering information, you don't have can be modelled in a form that uses value numbering information, you don't have
to do anything special to handle load instructions: just use the to do anything special to handle load instructions: just use the
<tt>load-vn</tt> pass, which uses alias analysis. <tt>load-vn</tt> pass, which uses alias analysis.</p>
</p>
</div> </div>
<!-- ======================================================================= --> <!-- ======================================================================= -->
@ -365,36 +356,33 @@ to do anything special to handle load instructions: just use the
</div> </div>
<div class="doc_text"> <div class="doc_text">
<p>
Many transformations need information about alias <b>sets</b> that are active in <p>Many transformations need information about alias <b>sets</b> that are active
some scope, rather than information about pairwise aliasing. The <tt><a in some scope, rather than information about pairwise aliasing. The <tt><a
href="/doxygen/classAliasSetTracker.html">AliasSetTracker</a></tt> class is used href="/doxygen/classAliasSetTracker.html">AliasSetTracker</a></tt> class is used
to efficiently build these Alias Sets from the pairwise alias analysis to efficiently build these Alias Sets from the pairwise alias analysis
information provided by the AliasAnalysis interface. information provided by the AliasAnalysis interface.</p>
</p>
<p> <p>First you initialize the AliasSetTracker by use the "<tt>add</tt>" methods to
First you initialize the AliasSetTracker by use the "<tt>add</tt>" methods to
add information about various potentially aliasing instructions in the scope you add information about various potentially aliasing instructions in the scope you
are interested in. Once all of the alias sets are completed, your pass should are interested in. Once all of the alias sets are completed, your pass should
simply iterate through the constructed alias sets, using the AliasSetTracker simply iterate through the constructed alias sets, using the AliasSetTracker
<tt>begin()</tt>/<tt>end()</tt> methods. <tt>begin()</tt>/<tt>end()</tt> methods.</p>
</p>
<p> <p>The <tt>AliasSet</tt>s formed by the <tt>AliasSetTracker</tt> are guaranteed
The <tt>AliasSet</tt>s formed by the <tt>AliasSetTracker</tt> are guaranteed to to be disjoint, calculate mod/ref information for the set, and keep track of
be disjoint, calculate mod/ref information for the set, and keep track of
whether or not all of the pointers in the set are Must aliases. The whether or not all of the pointers in the set are Must aliases. The
AliasSetTracker also makes sure that sets are properly folded due to call AliasSetTracker also makes sure that sets are properly folded due to call
instructions, and can provide a list of pointers in each set. instructions, and can provide a list of pointers in each set.</p>
</p>
<p> <p>As an example user of this, the <a href="/doxygen/structLICM.html">Loop
As an example user of this, the <a href="/doxygen/structLICM.html">Loop
Invariant Code Motion</a> pass uses AliasSetTrackers to build alias information Invariant Code Motion</a> pass uses AliasSetTrackers to build alias information
about each loop nest. If an AliasSet in a loop is not modified, then all load about each loop nest. If an AliasSet in a loop is not modified, then all load
instructions from that set may be hoisted out of the loop. If any alias sets instructions from that set may be hoisted out of the loop. If any alias sets
are stored <b>and</b> are must alias sets, then the stores may be sunk to are stored <b>and</b> are must alias sets, then the stores may be sunk to
outside of the loop. Both of these transformations obviously only apply if the outside of the loop. Both of these transformations obviously only apply if the
pointer argument is loop-invariant. pointer argument is loop-invariant.</p>
</p>
</div> </div>
<!-- ======================================================================= --> <!-- ======================================================================= -->
@ -403,12 +391,12 @@ pointer argument is loop-invariant.
</div> </div>
<div class="doc_text"> <div class="doc_text">
<p>
As a last resort, your pass could use the AliasAnalysis interface directly to <p>As a last resort, your pass could use the AliasAnalysis interface directly to
service your pass. If you find the need to do this, please <a service your pass. If you find the need to do this, please <a
href="mailto:sabre@nondot.org">let me know</a> so I can see if something new href="mailto:sabre@nondot.org">let me know</a> so I can see if something new
needs to be added to LLVM. needs to be added to LLVM.</p>
</p>
</div> </div>
<!-- *********************************************************************** --> <!-- *********************************************************************** -->
@ -418,10 +406,11 @@ needs to be added to LLVM.
<!-- *********************************************************************** --> <!-- *********************************************************************** -->
<div class="doc_text"> <div class="doc_text">
<p>
If you're going to be working with the AliasAnalysis infrastructure, there are <p>If you're going to be working with the AliasAnalysis infrastructure, there
several nice tools that may be useful for you and are worth knowing about... are several nice tools that may be useful for you and are worth knowing
</p> about...</p>
</div> </div>
<!-- ======================================================================= --> <!-- ======================================================================= -->
@ -430,13 +419,13 @@ several nice tools that may be useful for you and are worth knowing about...
</div> </div>
<div class="doc_text"> <div class="doc_text">
<p>
The <tt>-no-aa</tt> analysis is just like what it sounds: an alias analysis that <p>The <tt>-no-aa</tt> analysis is just like what it sounds: an alias analysis
never returns any useful information. This pass can be useful if you think that that never returns any useful information. This pass can be useful if you think
alias analysis is doing something wrong and are trying to narrow down a problem. that alias analysis is doing something wrong and are trying to narrow down a
If you don't specify an alias analysis, the default will be to use the problem. If you don't specify an alias analysis, the default will be to use the
<tt>basicaa</tt> pass which does quite a bit of disambiguation on its own. <tt>basicaa</tt> pass which does quite a bit of disambiguation on its own.</p>
</p>
</div> </div>
@ -446,12 +435,12 @@ If you don't specify an alias analysis, the default will be to use the
</div> </div>
<div class="doc_text"> <div class="doc_text">
<p>
The <tt>-print-alias-sets</tt> pass is exposed as part of the <tt>analyze</tt> <p>The <tt>-print-alias-sets</tt> pass is exposed as part of the
tool to print out the Alias Sets formed by the <a <tt>analyze</tt> tool to print out the Alias Sets formed by the <a
href="#ast"><tt>AliasSetTracker</tt></a> class. This is useful if you're using href="#ast"><tt>AliasSetTracker</tt></a> class. This is useful if you're using
the <tt>AliasSetTracker</tt>. the <tt>AliasSetTracker</tt>.</p>
</p>
</div> </div>
<!-- ======================================================================= --> <!-- ======================================================================= -->
@ -460,22 +449,20 @@ the <tt>AliasSetTracker</tt>.
</div> </div>
<div class="doc_text"> <div class="doc_text">
<p>
The <tt>-count-aa</tt> pass is useful to see how many queries a particular pass <p>The <tt>-count-aa</tt> pass is useful to see how many queries a particular
is making and what kinds of responses are returned by the alias analysis. An pass is making and what kinds of responses are returned by the alias analysis.
example usage is: An example usage is:</p>
</p>
<p>
<pre> <pre>
$ opt -basicaa -count-aa -ds-aa -count-aa -licm $ opt -basicaa -count-aa -ds-aa -count-aa -licm
</pre> </pre>
</p>
<p> <p>Which will print out how many queries (and what responses are returned) by
Which will print out how many queries (and what responses are returned) by the the <tt>-licm</tt> pass (of the <tt>-ds-aa</tt> pass) and how many queries are
<tt>-licm</tt> pass (of the <tt>-ds-aa</tt> pass) and how many queries are made made of the <tt>-basicaa</tt> pass by the <tt>-ds-aa</tt> pass. This can be
of the <tt>-basicaa</tt> pass by the <tt>-ds-aa</tt> pass. This can be useful useful when evaluating an alias analysis for precision.</p>
when evaluating an alias analysis for precision.
</p>
</div> </div>
<!-- ======================================================================= --> <!-- ======================================================================= -->
@ -484,20 +471,22 @@ when evaluating an alias analysis for precision.
</div> </div>
<div class="doc_text"> <div class="doc_text">
<p>
The <tt>-aa-eval</tt> pass simply iterates through all pairs of pointers in a <p>The <tt>-aa-eval</tt> pass simply iterates through all pairs of pointers in a
function and asks an alias analysis whether or not the pointers alias. This function and asks an alias analysis whether or not the pointers alias. This
gives an indication of the precision of the alias analysis. Statistics are gives an indication of the precision of the alias analysis. Statistics are
printed. printed.
</p> </p>
</div> </div>
<!-- *********************************************************************** --> <!-- *********************************************************************** -->
<hr><font size="-1"> <hr>
<address><a href="mailto:sabre@nondot.org">Chris Lattner</a></address> <div class="doc_footer">
Last modified: $Date$ <address><a href="mailto:sabre@nondot.org">Chris Lattner</a></address>
</font> Last modified: $Date$
</div>
</body> </body>
</html> </html>