I’m a beginner in LLVM and I’m trying to run the devirtualization pass on some code using LLVM 12.0.1. I can find such a pass already implemented at ./llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
However, using opt does not give me such an option to pass this flag as a parameter. This pass wasn’t listed when I did ‘opt --help’
Can someone please point me to how to run the WholeProgramDevirt pass? Any pointers would be really helpful.