<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 5/18/15 10:45 PM, Félix Cloutier
      wrote:<br>
    </div>
    <blockquote cite="mid:E9ACAC14-F02C-4C55-AA48-6C1E8DBDBD06@yahoo.ca"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html; charset=utf-8">
      Hi all,
      <div class=""><br class="">
      </div>
      <div class="">I have one analysis pass that I want to perform on
        call graph SCCs. However, for each function in the SCC, I need
        function-level analyses, like the dominator tree and the memory
        dependency analysis.</div>
      <div class=""><br class="">
      </div>
      <div class="">I’ve <a moz-do-not-send="true"
href="http://stackoverflow.com/questions/30059622/using-dominatortreewrapperpass-in-callgraphsccpass"
          class="">been told before</a> that these were not available
        from a CallGraphSCCPass. What would be the best approach for me
        to access this information? Should I run the passes manually, or
        is there another, more pass-scheduler-friendly approach?</div>
    </blockquote>
    <br>
    I would write a ModulePass that simply iterates over the call
    graph.  LLVM provides a CallGraph analysis which one can use to find
    SCCs; DSA has an analysis called CallTargets which does "real"
    CallGraph analysis (which means that it tries to reason about
    function pointers, though I cannot guarantee that its reasoning will
    be as accurate as you want).<br>
    <br>
    If you use a ModulePass, can you analyze any part of the program you
    like, and you can use FunctionPasses.<br>
    <br>
    Regards,<br>
    <br>
    John Criswell<br>
    <br>
    <blockquote cite="mid:E9ACAC14-F02C-4C55-AA48-6C1E8DBDBD06@yahoo.ca"
      type="cite">
      <div class=""><br class="">
      </div>
      <div class="">Félix</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>
    <br>
    <pre class="moz-signature" cols="72">-- 
John Criswell
Assistant Professor
Department of Computer Science, University of Rochester
<a class="moz-txt-link-freetext" href="http://www.cs.rochester.edu/u/criswell">http://www.cs.rochester.edu/u/criswell</a></pre>
  </body>
</html>