[clang] [llvm] [OptBisect][IR] Adding a new OptPassGate for disabling passes via name (PR #145059)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 10 06:17:50 PDT 2025


================
@@ -114,6 +114,10 @@ class LLVM_ABI Pass {
   /// Registration templates, but can be overloaded directly.
   virtual StringRef getPassName() const;
 
+  /// getPassArgument - Return a nice clean name for a pass
+  /// corresponding to that used to enable the pass in opt
+  virtual StringRef getPassArgument() const;
----------------
nikic wrote:

This does not need to be virtual.

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


More information about the llvm-commits mailing list