paperchalice wrote: > Just a nit picking. > > Is this an adoption to refactored NewPM pass builder? > > #89708 Yes, but how to extend the codegen pipeline is still controversial. It seems that using callback functions is better than polymorphic member function. https://github.com/llvm/llvm-project/pull/94158