I have been using
opt -stats -analyze -instcount file.bc
to get statistic info of code. Now I would like to get the number of the LLVM instructions in a function of a particular name, say, "bar".
Ideally, I would expect an option of opt, which would work in this way
opt -stats -analyze -instcount funcname="bar"
What would be the right option to use? I googled a lot and have not got an answer yet.