opt -load ${shared_lib_name} -hello < input.bc > output.bc<br><br>You should first translate 1.c to bitcode before your are going<br>to use it as the input of the opt.  Try:<br><br>clang -emit-llvm -c input.c -o input.bc<br>
<br>Sincerely,<br>Logan<br><br><br><div class="gmail_quote">On Mon, Oct 29, 2012 at 7:00 PM, sagar visa <span dir="ltr"><<a href="mailto:f2001098@yahoo.co.in" target="_blank">f2001098@yahoo.co.in</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:arial,helvetica,sans-serif"><div>I am writing a new pass hello and the shared library is created(.so). The library is loaded with opt. But the pass in not available in opt. opt  -help shows the command.</div>
<div><br></div><div style="font-style:normal;font-size:16.363636016845703px;background-color:transparent;font-family:arial,helvetica,sans-serif">Please find the screenshot attached.</div><div style="font-style:normal;font-size:16.363636016845703px;background-color:transparent;font-family:arial,helvetica,sans-serif">
<br></div><div style="font-style:normal;font-size:16.363636016845703px;background-color:transparent;font-family:arial,helvetica,sans-serif">Thanks,</div><div style="font-style:normal;font-size:16.363636016845703px;background-color:transparent;font-family:arial,helvetica,sans-serif">
Vidya Sagar.</div></div></div><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br>