Hi,<br><br>I have written a pass to compute the reaching definitions for variables using loads and stores. The class for this pass is named <span style="font-family: courier new,monospace;">ReachingDef</span> and the pass itself is registered as <span style="font-family: courier new,monospace;">reaching-def</span>. The compiled <span style="font-family: courier new,monospace;">reaching-def.so</span> file goes to llvm-home/Release/lib/. This pass is used by another function pass that is registered as <span style="font-family: courier new,monospace;">iel</span> and the class is named <span style="font-family: courier new,monospace;">SIL</span>. I have setup <span style="font-family: courier new,monospace;">AnalysisUsage </span>object of <span style="font-family: courier new,monospace;">SIL </span>by doing the below:<br>
<br><span style="font-family: courier new,monospace;">    AU.setPreservesAll();</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">    AU.addRequired<<b style="color: rgb(0, 0, 0);">ReachingDef</b>>();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">    AU.addRequired<</span><i style="font-family: courier new,monospace;">some other pass</i><span style="font-family: courier new,monospace;">>();</span><br style="font-family: courier new,monospace;">
<br>When I load the pass <span style="font-family: courier new,monospace;">iel</span>, I get the following error:<br><br><span style="font-family: arial,helvetica,sans-serif;">opt -load ../../../Release/lib/<b>iel</b>.so</span><br style="font-family: arial,helvetica,sans-serif;">
<span style="font-family: arial,helvetica,sans-serif;"><premain>: CommandLine Error: Argument 'inline-threshold' defined more than once!</span><br style="font-family: arial,helvetica,sans-serif;"><span style="font-family: arial,helvetica,sans-serif;">opt: CommandLine Error: Argument 'inline-threshold' defined more than once!</span><br style="font-family: arial,helvetica,sans-serif;">
<b style="font-family: arial,helvetica,sans-serif;">Error opening '../../../Release/lib/iel.so': ../../../Release/lib/iel.so: undefined symbol: _ZTI11ReachingDef<br>  -load request ignored.<br></b><br>It looks like the <span style="font-family: courier new,monospace;">ReachingDef</span> pass is not being recognized. Please tell me how to fix this.<br>
<br>Thanks<br>