[llvm] [CodeGen] Expose the extensibility of PassConfig to plugins (PR #139059)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 30 02:53:06 PDT 2025
================
@@ -119,6 +119,9 @@ addPassesToGenerateCode(CodeGenTargetMachineImpl &TM, PassManagerBase &PM,
PM.add(PassConfig);
PM.add(&MMIWP);
+ for (auto& C : *TargetMachine::TargetPassConfigCallbacks)
----------------
Tcc100 wrote:
Ok, I used `PassConfigCallback &C` as @antoniofrighetto suggested!
https://github.com/llvm/llvm-project/pull/139059
More information about the llvm-commits
mailing list