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

Stefan Gränitz via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 3 03:14:11 PDT 2025


================
@@ -119,6 +125,9 @@ class TargetMachine {
   std::optional<PGOOptions> PGOOption;
 
 public:
+  static ManagedStatic<SmallVector<PassConfigCallback, 1>>
+      TargetPassConfigCallbacks;
----------------
weliveindetail wrote:

I agree with the lifetime considerations, but implementation needs a few fixes. Let me comment over there.

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


More information about the llvm-commits mailing list