[flang-commits] [clang] [flang] [llvm] [polly] [Plugins] Pass options to a pass plugin in -load-pass-plugin (PR #226773)

Fangrui Song via flang-commits flang-commits at lists.llvm.org
Sun Sep 27 11:59:39 PDT 2026


================
@@ -91,9 +91,11 @@ static cl::opt<std::string> RemarksFormat(
     cl::desc("The format used for serializing remarks (default: YAML)"),
     cl::value_desc("format"), cl::init("yaml"));
 
-static cl::list<std::string>
-    PassPlugins("load-pass-plugin",
-                cl::desc("Load passes from plugin library"));
+static cl::list<std::string> PassPlugins(
+    "load-pass-plugin",
+    cl::desc("Load passes from plugin library. The plugin's options follow "
+             "its file name, separated by commas"),
----------------
MaskRay wrote:

I'd treat them unsupported. If there is real use case, we can introduce escaping backslash: `\\` -> `\`, `\,` -> `,`

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


More information about the flang-commits mailing list