Hi all,<br><br><br>
<meta http-equiv="CONTENT-TYPE" content="text/html; charset=utf-8">
<title></title>
<meta name="GENERATOR" content="OpenOffice.org 3.2 (Linux)">
<style type="text/css">
<!--
@page { margin: 0.79in }
P { margin-bottom: 0.08in }
-->
</style>
<p style="margin-bottom:0in">I want to find memory dependency
between <font color="#000000"><font face="Monospace"><font>CallInst
instruction and other. So i used the following code:</font></font></font></p>
<p style="margin-bottom:0in">
</p>
<p style="margin-bottom:0in"><br></p><p style="margin-bottom:0in"><br></p><p style="margin-bottom:0in"><font color="#000000"><font face="Monospace"><font><i> AliasAnalysis
&AA=getAnalysis<AliasAnalysis>();</i></font></font></font></p>
<p style="margin-bottom:0in"><i><font color="#000000"><font face="Monospace"><font style="font-size:8pt" size="1">
</font></font></font><font color="#7f0055"><font face="Monospace"><font style="font-size:8pt" size="1"><b>if</b></font></font></font><font color="#000000"><font face="Monospace"><font style="font-size:8pt" size="1">(isa<</font></font></font><font color="#000000"><font face="Monospace"><font>StoreInst</font></font></font><font color="#000000"><font face="Monospace"><font style="font-size:8pt" size="1">>(inst1)){</font></font></font></i></p>
<p style="margin-bottom:0in" align="LEFT"><font color="#000000"><font face="Monospace"><font style="font-size:8pt" size="1"><i> </i></font><font color="#000000"><i> </i></font><i><font color="#7f0055"><b>if</b></font><font color="#000000">(isa<CallInst>(inst2))</font></i><font style="font-size:8pt" size="1"><i>{</i></font></font></font></p>
<p style="margin-bottom:0in" align="LEFT"><font color="#000000"><font face="Monospace"><font style="font-size:8pt" size="1"><i> CallInst *call_inst2= dyn_cast<CallInst>(inst2); </i></font></font></font></p>
<p style="margin-bottom:0in" align="LEFT"><font color="#000000"><font face="Monospace"><i><font color="#000000">
</font><font color="#7f0055"><b>if</b></font><font color="#000000">(AA.getModRefInfo(inst1,call_inst2)==mod)</font></i><font style="font-size:8pt" size="1"><i>{</i></font></font></font></p>
<p style="margin-bottom:0in" align="LEFT"><font color="#000000"><font face="Monospace"><font style="font-size:8pt" size="1"><i> //</i></font></font></font></p>
<p style="margin-bottom:0in" align="LEFT"><font color="#000000"><font face="Monospace"><font style="font-size:8pt" size="1"><i>
} </i></font></font></font></p>
<p style="margin-bottom:0in" align="LEFT"><font color="#000000"><font face="Monospace"><font style="font-size:8pt" size="1"><i>
}</i></font></font></font></p>
<p style="margin-bottom:0in" align="LEFT"><font color="#000000"><font face="Monospace"><font style="font-size:8pt" size="1"><i> }</i></font></font></font></p>
<p style="margin-bottom:0in">
</p>
<p style="margin-bottom:0in"><font color="#000000"><font face="Monospace"><font>but
i get the following error. I should what do for exrtact memory
dependency between CallInst instruction and other.</font></font></font></p>
<br>