[llvm] [CodeGen][NewPM] Port `AsmPrinter` to new pass manager (PR #99320)
Akshat Oke via llvm-commits
llvm-commits at lists.llvm.org
Wed May 21 23:40:54 PDT 2025
================
@@ -531,6 +532,12 @@ PassBuilder::PassBuilder(TargetMachine *TM, PipelineTuningOptions PTO,
PARAMS) \
PIC->addClassToPassName(CLASS, NAME);
#include "llvm/Passes/MachinePassRegistry.def"
+
+ PIC->addClassToPassName(AsmPrinterInitializePass::name(),
----------------
optimisan wrote:
To keep it completely customizable and without a separate pass instance, the third option is to have targets register their own name for the common AsmPrinterPass instance in a PB callback with `PIC->addClassToPassName(AsmPrinterPass::name(), "target-asm-printer")`
But we could go with the first option of predetermined target names to keep it simple.
https://github.com/llvm/llvm-project/pull/99320
More information about the llvm-commits
mailing list