<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>