[llvm] [PassBuilder] Table-drive pass name printing (PR #202656)

Wael Yehia via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 08:07:29 PDT 2026


================
@@ -2796,92 +2796,155 @@ PassBuilder::parseRegAllocFilter(StringRef FilterName) {
   return std::nullopt;
 }
 
-static void printPassName(StringRef PassName, raw_ostream &OS) {
-  OS << "  " << PassName << "\n";
+struct PassNameWithParams {
+  StringLiteral Name;
+  StringLiteral Params;
+};
----------------
w2yehia wrote:

why do we need the anonymous namespace around a class definition in a non-header file?

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


More information about the llvm-commits mailing list