kyulee-com wrote: > Shall we add new pass manager support in this PR or you have planned a separated one for it? I refactor the pass to support both legacy and new pass manager. Also directly wire it into a codegen pass. https://github.com/llvm/llvm-project/pull/112671