[llvm-branch-commits] [llvm] [CodeGen] Declare command line options in TableGen (PR #228729)
Fangrui Song via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Oct 4 00:09:14 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">;
----------------
MaskRay wrote:
#228838 will canonicalize the options to `cgp-`.
(Section prefix options (used by Google and Meta) are left for future.)
https://github.com/llvm/llvm-project/pull/228729
More information about the llvm-branch-commits
mailing list