https://github.com/boomanaiden154 created https://github.com/llvm/llvm-project/pull/238167 Standard NewPM pass porting. There are a lot of function_refs because this pass uses a lot of Analyses. I don't think there is a cleaner way to do this.