[flang-commits] [clang] [flang] [llvm] [polly] [Plugins] Load pass plugins after parsing the command line (PR #226773)

Fangrui Song via flang-commits flang-commits at lists.llvm.org
Wed Sep 30 00:47:20 PDT 2026


================
@@ -125,6 +125,11 @@ class PassPlugin {
 /// the same name, the last one receives the arguments.
 LLVM_ABI Error passPluginArguments(ArrayRef<PassPluginLibraryInfo> Infos,
                                    ArrayRef<std::string> Args);
+
+/// Parses \p Args as options declared with llvm/Support/CommandLine.h, for a
+/// \c ParseArguments callback. \p PluginName prefixes diagnostics.
+LLVM_ABI Error parsePassPluginCommandLine(const char *PluginName,
----------------
MaskRay wrote:

parsePassPluginCommandLine will be deleted by #227545

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


More information about the flang-commits mailing list