[llvm] [CodeGen] Declare command line options in TableGen (PR #228729)
Alexis Engelke via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 3 22:40:09 PDT 2026
================
@@ -0,0 +1,200 @@
+//===----------------------------------------------------------------------===//
+//
+// 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/LibraryOptions.td"
+
+def CodeGenOptions : OptionsStruct;
+
+defm : BoolField<"addr-sink-combine-base-gv", "true",
+ "Allow combining of BaseGV field in Address sinking">;
----------------
aengelke wrote:
Maybe as a future cleanup: All CodeGenPrepare options should begin with cgp-?
Not sure if alphabetical sorting is the best in the absence of consistent prefixes.
https://github.com/llvm/llvm-project/pull/228729
More information about the llvm-commits
mailing list