[flang-commits] [clang] [flang] [llvm] [Passes] Port -print-pipeline-passes to PassesOptions (PR #230220)

Alexis Engelke via flang-commits flang-commits at lists.llvm.org
Thu Oct 8 22:31:10 PDT 2026


================
@@ -49,8 +58,16 @@ multiclass OptionalBoolField<string name, string help> {
 multiclass EnumField<string name, string type, code default, string values,
                      list<code> enumerators, string help> {
   def NAME : SeparateOrEq<["-", "--"], name>, Field<NAME, type, default>,
-    Values<values>, NormalizedValues<enumerators>,
-    MetaVarName<"<"#!subst(",", "|", values)#">">, HelpText<help>;
+    EnumValues<values, enumerators>, HelpText<help>;
+}
+
+// An EnumField also set to <bare> by -<name> without a value. It never consumes
+// the next argument.
----------------
aengelke wrote:

Add explanation of default vs bare in the comment as well.

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


More information about the flang-commits mailing list