<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Dear Shen,<br>
      <br>
      This isn't sufficient information to help you fix your problem. 
      Is @const_expr a function, and LLVM constant expression, or
      something else?  If it's a function, did you verify that it has a
      body (i.e., it's not a function declaration)?<br>
      <br>
      Regards,<br>
      <br>
      John Criswell<br>
      <br>
      On 7/14/15 4:41 PM, Shen Liu wrote:<br>
    </div>
    <blockquote
cite="mid:CAHxbscvUgOZyq_B8AQ2E4ibE_Nqh6sezewz1THrwiOq3Q-Twng@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi all, now I am using LLVM to draw a program
        dependence graph. In my ModulePass I hope to omit some special
        functions like "main" and only run some special functions. 
        <div><br>
        </div>
        <div>For example, as shown in the following dump result, how can
          i selectively omit function "@const_expr" in the input module?
          Is there a general way to run some function only but omit
          others?  Thanks!</div>
        <div>
          <div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div><br>
            </div>
            <div>
              <pre style="margin-top:0px;padding:5px;border:0px;font-size:13px;overflow:auto;width:auto;max-height:600px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;word-wrap:normal;background-color:rgb(238,238,238)"><code style="margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:inherit">Stack dump:
0.  Program arguments: opt --load mypass.so -mypass --debug-pass=Structure 
1.  Running pass 'Function Pass Manager' on module '<stdin>'.
2.  Running pass 'My test analysis' on function '@const_expr'
Segmentation fault (core dumped)</code></pre>
            </div>
          </div>
        </div>
      </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="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cs.rochester.edu_u_criswell&d=AwMD-g&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=HxVe-mxgDTb9N94h3zWwVpV_EOZklOMZkR7NX-rIF58&s=RkZKcgMfXNZ1IbT2RaVzlAa2lQNAPfblBSLBtgQ_D6A&e=">http://www.cs.rochester.edu/u/criswell</a></pre>
  </body>
</html>