https://github.com/cxy-1993 requested changes to this pull request. Haven't look into details, but i believe we should reconsider the whole approach. The interface design and the modifications to the pass feel like overkill. https://github.com/llvm/llvm-project/pull/120302