[clang] [llvm] [CodeGen] Expose the extensibility of PassConfig to plugins (PR #139059)
via cfe-commits
cfe-commits at lists.llvm.org
Tue May 20 07:04:09 PDT 2025
================
@@ -119,6 +119,9 @@ addPassesToGenerateCode(CodeGenTargetMachineImpl &TM, PassManagerBase &PM,
PM.add(PassConfig);
PM.add(&MMIWP);
+ for (auto& C : *TargetMachine::TargetPassConfigCallbacks)
----------------
Tcc100 wrote:
This is same syntax as most of the callbacks in the code base use. Do you think not using auto would be better in this case?
https://github.com/llvm/llvm-project/pull/139059
More information about the cfe-commits
mailing list