[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:07:24 PDT 2025
================
@@ -72,6 +74,10 @@ namespace yaml {
struct MachineFunctionInfo;
} // namespace yaml
+class TargetMachine;
+using PassConfigCallback =
+ std::function<void(TargetMachine &, PassManagerBase &, TargetPassConfig *)>;
----------------
Tcc100 wrote:
I think this should be a owning reference, similar to the other callback vectors.
https://github.com/llvm/llvm-project/pull/139059
More information about the cfe-commits
mailing list