hello pass is not available

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_PASS.odt (253 KB)

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

I agree with Logan.
The pass need an input file .bc not a file .c.
You can see more infromation frome the page:http://llvm.org/docs/WritingAnLLVMPass.html
Thanks.
Shining

Maybe Vidya actually wants to write a clang plugin and is confusing that with an
LLVM plugin?

Ciao, Duncan.