<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><br></div><div style="font-family: 'times new roman', 'new york', times, serif; "><div style="font-family: 'times new roman', 'new york', times, serif; ">
<div id="yiv547542969"><div style="background-color: rgb(255, 255, 255); font-family: 'times new roman', 'new york', times, serif; "><div style="color: rgb(0, 0, 0); font-family: times, serif; font-size: 12pt; ">Hello .</div><div style="font-family: times, serif; "><div class="yui_3_2_0_20_134301829836475"><br></div></div><div style="color: rgb(0, 0, 0); font-family: times, serif; font-size: 12pt; " class="yui_3_2_0_20_134301829836475">I'm trying to implement LoopPass.</div><div style="color: rgb(0, 0, 0); font-family: times, serif; font-size: 12pt; " class="yui_3_2_0_20_134301829836475">Here is simple code : </div><div style="color: rgb(0, 0, 0); font-family: times, serif; font-size: 12pt; " class="yui_3_2_0_20_134301829836475"><br></div><div style="color: rgb(0, 0, 0); font-family: times, serif; font-size: 12pt; " class="yui_3_2_0_20_134301829836475"><div class="yui_3_2_0_20_134301829836475">  class LoopParser: public llvm::LoopPass</div><div
 class="yui_3_2_0_20_134301829836475">  {</div><div class="yui_3_2_0_20_134301829836475">    public:</div><div class="yui_3_2_0_20_134301829836475">      static char ID;</div><div class="yui_3_2_0_20_134301829836475"><br></div><div class="yui_3_2_0_20_134301829836475">    public:</div><div class="yui_3_2_0_20_134301829836475">      virtual void getAnalysisUsage(llvm::AnalysisUsage &AU) const</div><div class="yui_3_2_0_20_134301829836475">      {</div><div class="yui_3_2_0_20_134301829836475">        AU.addRequiredID(llvm::LoopSimplifyID);</div><div class="yui_3_2_0_20_134301829836475">        AU.addPreservedID(llvm::LoopSimplifyID);</div><div class="yui_3_2_0_20_134301829836475">        AU.addRequired<llvm::LoopInfo>();</div><div class="yui_3_2_0_20_134301829836475">      }</div><div
 class="yui_3_2_0_20_134301829836475"><br></div><div class="yui_3_2_0_20_134301829836475">      virtual bool runOnLoop(llvm::Loop* IncomingLoop,</div><div class="yui_3_2_0_20_134301829836475">                             llvm::LPPassManager& LPM_Ref)</div><div class="yui_3_2_0_20_134301829836475">     { return false; }</div><div class="yui_3_2_0_20_134301829836475"><br></div><div class="yui_3_2_0_20_134301829836475">      LoopParser() : llvmLoopPass(ID)</div><div class="yui_3_2_0_20_134301829836475">      {}</div><div class="yui_3_2_0_20_134301829836475">  };</div><div><div style="font-size: medium; ">char LoopParser::ID = 0;</div><div style="font-size: medium; ">static llvm::RegisterPass<LoopParser> XX("LoopParser", "TODO ", false, false);</div></div></div><div style="color: rgb(0, 0, 0); font-family:
 times, serif; font-size: 12pt; " class="yui_3_2_0_20_134301829836475"><br></div><div style="color: rgb(0, 0, 0); font-family: times, serif; font-size: 12pt; " class="yui_3_2_0_20_134301829836475">when I'am trying to load  a get the error message : <span style="font-weight: bold;">undefined symbol: _ZTIN4llvm8LoopPassE</span></div><div style="color: rgb(0, 0, 0); font-family: times, serif; font-size: 12pt; " class="yui_3_2_0_20_134301829836475"><span style="font-weight: bold;">How can I fix?</span></div><div style="color: rgb(0, 0, 0); font-family: times, serif; font-size: 12pt; " class="yui_3_2_0_20_134301829836475"><span style="font-weight: bold;"><br></span></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "><span><font face="times new roman, new york, times, serif" size="3">Thanks in advance,</font></span></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman',
 'new york', times, serif; font-size: 12pt; "><span><font face="times new roman, new york, times, serif" size="3">Edvard </font></span></div></div></div><br><br> </div> </div>  </div></body></html>