[llvm] [CGData] Declare command line options in TableGen, one struct per library (PR #226087)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 25 05:46:25 PDT 2026
================
@@ -0,0 +1,51 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+include "llvm/Option/OptParser.td"
+
+def CGDataOptions : OptionsStruct;
+
+defm CodeGenDataGenerate : BoolField<"codegen-data-generate", "false",
+ "Emit CodeGen Data into custom sections">;
----------------
aengelke wrote:
At some point, I had this idea that we could roughly classify options into "debug functionality" (printing etc.), "optimization tunables" (thresholds, enable xyz, etc.), "migration toggles", and "other", for both grouping in help and strongly discouraging the addition of "other" options. We don't have to do this and certainly don't need to do this now, just an idea.
https://github.com/llvm/llvm-project/pull/226087
More information about the llvm-commits
mailing list