I have been recently looking at porting a pass from the legacy LLVM Pass Manager to the new one.
My main issue is that this pass has options, and I don’t see how to use them with the new PM.
Is there a prefered way to do this?
With the legacy PM, I could do
opt --enable-new-pm=0 -load [...] --<pass-name> -<option-name>=<option-value> <bitcode-file>.
I can imagine using environment variables or configuration files to keep the option feature in the new PM, but I am wondering if there is a better way.
Thanks in advance,