[all-commits] [llvm/llvm-project] d8c62b: [Sparc] Declare command line options in TableGen (...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Thu Oct 1 00:45:41 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d8c62b730f84536805d7a4a837a1f81ceac207b5
https://github.com/llvm/llvm-project/commit/d8c62b730f84536805d7a4a837a1f81ceac207b5
Author: Fangrui Song <i at maskray.me>
Date: 2026-10-01 (Thu, 01 Oct 2026)
Changed paths:
M llvm/docs/CommandLine.md
M llvm/include/llvm/Option/LibraryOptions.td
M llvm/lib/Target/Sparc/CMakeLists.txt
M llvm/lib/Target/Sparc/DelaySlotFiller.cpp
M llvm/lib/Target/Sparc/SparcFrameLowering.cpp
M llvm/lib/Target/Sparc/SparcInstrInfo.cpp
A llvm/lib/Target/Sparc/SparcOptions.td
M llvm/lib/Target/Sparc/SparcRegisterInfo.cpp
M llvm/lib/Target/Sparc/SparcSubtarget.cpp
M llvm/lib/Target/Sparc/SparcSubtarget.h
M llvm/lib/Target/Sparc/SparcTargetMachine.cpp
M llvm/lib/Target/Sparc/SparcTargetMachine.h
M llvm/unittests/Option/LibraryOptionsTest.cpp
M llvm/unittests/Option/LibraryOpts.td
M llvm/utils/TableGen/OptionParserEmitter.cpp
M llvm/utils/gn/secondary/llvm/lib/Target/Sparc/BUILD.gn
M utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
Log Message:
-----------
[Sparc] Declare command line options in TableGen (#227977)
Move the cl::opts into SparcOptions.td. SparcSubtarget.h declares the
struct and SparcSubtarget.cpp holds the generated definitions.
LLVMInitializeSparcTarget registers the options, so they cost no static
initializer. SparcTargetMachine holds a reference to
SparcOptions::Global, and SparcSubtarget forwards it, so code reads
Subtarget.getCLOpts() rather than the global.
`OptionsStruct<prefix = "sparc-">` is new: it strips the shared prefix
from member names, so -sparc-bpcc-offset-bits sets bpcc_offset_bits.
Aided by Opus 5.5
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list