[llvm] [CodeGen] Expose the extensibility of PassConfig to plugins (PR #139059)
Stefan Gränitz via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 24 07:03:39 PDT 2025
================
@@ -119,6 +125,9 @@ class TargetMachine {
std::optional<PGOOptions> PGOOption;
public:
+ static ManagedStatic<SmallVector<PassConfigCallback, 1>>
+ TargetPassConfigCallbacks;
----------------
weliveindetail wrote:
Could this be a non-static private member of `CodeGenTargetMachineImpl` instead? The `registerTargetPassConfigCallback()` would be virtual then like a few others already.
https://github.com/llvm/llvm-project/pull/139059
More information about the llvm-commits
mailing list