<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    On 4/27/12 2:05 PM, shanmuk rao wrote:
    <blockquote
cite="mid:CAK0a7nOw2xV_dYsrDCwwcF-_tyb845ne8nUjbc=UTb92sCUOUQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <span>Hi,</span>
      <div>I am using Loop pass ( runOnLoop() function )</div>
      <div>In this function I want to access all the Loops in all the
        functions in the current Module</div>
      <div><br>
      </div>
      <div>
        the LoopInfo Pass only gives the Loops in the function where the
        current Loop resides :-(</div>
      <div>
        <div><br>
        </div>
        <div>Is there any other Pass by which I can access the Loops in
          others functions as well ?</div>
      </div>
    </blockquote>
    <br>
    I assume you're using a FunctionPass to do your analysis or
    optimization.  Try writing your pass as a ModulePass instead; a
    FunctionPass should only operate on code within the function that it
    is analyzing/modifying.<br>
    <br>
    -- John T.<br>
    <br>
    <blockquote
cite="mid:CAK0a7nOw2xV_dYsrDCwwcF-_tyb845ne8nUjbc=UTb92sCUOUQ@mail.gmail.com"
      type="cite">
      <div><br>
        <br>
        ......<br>
        Regards,<br>
        Shanmukha Rao</div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>