[llvm] [CodeGen][NewPM] Port `AsmPrinter` to new pass manager (PR #99320)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 3 07:06:29 PDT 2025


paperchalice wrote:

> Reverse Ping. @paperchalice is there any suggestion to be incorporated into it? For AMDGPU, we're in the process of enabling the NPM for CodeGen passes. It is one of the prerequisite patches we would like to see in the upstream. Much appreciate your effort.

The `AsmPrinterPass ` should be replaced by `<Target>AsmPrinterPass`, because we use CRTP to collect pass metadata and some tests want to stop before`<target>-asm-printer`, also AMDGPU should factor out the `validateMCResourceInfo`, because the finalization pass happens after `free-machine-function` currently.

This patch still needs to be reviewed by relevant reviewers, and it may introduce breaking changes in future...


https://github.com/llvm/llvm-project/pull/99320


More information about the llvm-commits mailing list