I am a beginner in writing LLVM Pass, and I was going through the documentation about writing my own LLVM pass and then run it with opt tool, i.e
/llvm/bin/opt -load /llvm/lib/LLVMHello.so -hello input.ll
Here, my pass is Hello.cpp and a C function is in input.c which is converted to input.ll by Clang.
My question is can we run our pass without using opt tool i.e.
./hello input.ll
Is there any method to run a pass like above such method?