This patchset performs some code cleanup, and is bootstrapped and regtested on loongarch64-linux-gnu.
Changes from v1 -> v2: * Replaced all TARGET_<evolution> macros from .opt. * Fixed definition of ISA_HAS_LAMCAS. Yang Yujie (4): LoongArch: Handle ISA evolution switches along with other options LoongArch: Rename ISA_BASE_LA64V100 to ISA_BASE_LA64 LoongArch: Use enums for constants LoongArch: Simplify -mexplicit-reloc definitions gcc/config/loongarch/genopts/genstr.sh | 2 +- .../loongarch/genopts/loongarch-strings | 8 +- gcc/config/loongarch/genopts/loongarch.opt.in | 16 +-- gcc/config/loongarch/lasx.md | 4 +- gcc/config/loongarch/loongarch-builtins.cc | 6 +- gcc/config/loongarch/loongarch-c.cc | 2 +- gcc/config/loongarch/loongarch-cpu.cc | 2 +- gcc/config/loongarch/loongarch-def.cc | 14 +- gcc/config/loongarch/loongarch-def.h | 120 +++++++++++------- gcc/config/loongarch/loongarch-driver.cc | 5 +- gcc/config/loongarch/loongarch-opts.cc | 27 +++- gcc/config/loongarch/loongarch-opts.h | 26 +++- gcc/config/loongarch/loongarch-str.h | 7 +- gcc/config/loongarch/loongarch.cc | 36 ++---- gcc/config/loongarch/loongarch.md | 12 +- gcc/config/loongarch/loongarch.opt | 20 +-- gcc/config/loongarch/lsx.md | 4 +- gcc/config/loongarch/sync.md | 22 ++-- 18 files changed, 180 insertions(+), 153 deletions(-) -- 2.43.0