[llvm] [CodeGen] Expose the extensibility of PassConfig to plugins (PR #139059)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 25 05:55:54 PDT 2025


================
@@ -119,6 +119,9 @@ addPassesToGenerateCode(CodeGenTargetMachineImpl &TM, PassManagerBase &PM,
   PM.add(PassConfig);
   PM.add(&MMIWP);
 
+  for (auto& C : *TargetMachine::TargetPassConfigCallbacks)
----------------
arsenm wrote:

LLVM style is supposed to be almost never auto, and I don't think the type here is that obvious 

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


More information about the llvm-commits mailing list