Trying to access the TargetMachine from a module pass.
I think I've rediscovered https://llvm.org/docs/NewPassManager.html#status-of-the-new-and-legacy-pass-managers.
This is a module pass run from the backend. It looks like I have to choose between access to TargetPassConfig and allowing the new pass manager.
That is, the pass can be run using the new pass manager as that was encouraged during review, but it looks like I'll have to delete that if I want target information.
Cargo culting is not working. What other state do I need to set?
Tagging various people. I miss the mailing list. Discord won't let me in.
So far I've worked out that the pass constructor can't call getAnalysis, and doInitialization can, but doInitialization is only called by one of the pass managers.
This is not running on the crashing invocation