[llvm] [Sparc] Declare command line options in TableGen (PR #227977)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 30 23:47:51 PDT 2026
================
@@ -0,0 +1,24 @@
+//===----------------------------------------------------------------------===//
+//
+// 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 SparcOptions : OptionsStruct<prefix = "sparc-">;
+
+defm : BoolField<"disable-sparc-delay-filler", "false",
----------------
MaskRay wrote:
Agreed. I'll rename the options as a follow-up. BTW: do you think we should keep sparc- spellings in `*Options.td` files? I lean toward keeping them because when users see `-mllvm -sparc-xxx`, they will likely search for `rg sparc-xxx` instead of `xxx`.
https://github.com/llvm/llvm-project/pull/227977
More information about the llvm-commits
mailing list