[LLVMdev] hello pass is not available

Logan Chien tzuhsiang.chien at gmail.com
Mon Oct 29 11:43:52 PDT 2012


opt -load ${shared_lib_name} -hello < input.bc > output.bc

You should first translate 1.c to bitcode before your are going
to use it as the input of the opt.  Try:

clang -emit-llvm -c input.c -o input.bc

Sincerely,
Logan


On Mon, Oct 29, 2012 at 7:00 PM, sagar visa <f2001098 at yahoo.co.in> wrote:

> 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.
>
> Please find the screenshot attached.
>
> Thanks,
> Vidya Sagar.
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121030/220f3f2f/attachment.html>


More information about the llvm-dev mailing list