]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Refactor riscv_implied_info_t to make it able to handle conditional implicati...
authorKito Cheng <kito.cheng@sifive.com>
Mon, 27 Nov 2023 14:01:44 +0000 (22:01 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 4 Dec 2023 06:38:10 +0000 (14:38 +0800)
commit9e12010b5e724277ea44c300630802f464407d8d
treeed338469111bcd01caae1a8117c134d6a636b762
parent26b1599d83ddd5b5ac6fb845549e66acc45981f6
RISC-V: Refactor riscv_implied_info_t to make it able to handle conditional implication [NFC]

RISC-V ISA implication rules become little bit complicated than before,
it may come with condition, so this commit extend the capability of
riscv_implied_info_t, also make it more...C++ize.

gcc/ChangeLog:

* common/config/riscv/riscv-common.cc (riscv_implied_predicator_t): New.
(riscv_implied_info_t::riscv_implied_info_t): New.
(riscv_implied_info_t::match): New.
(riscv_implied_info): New entry for zcf.
(riscv_subset_list::handle_implied_ext): Use
riscv_implied_info_t::match.
(riscv_subset_list::check_implied_ext): Ditto.
(riscv_subset_list::handle_combine_ext): Ditto.
(riscv_subset_list::parse): Move zcf implication handling to
riscv_implied_infos.
gcc/common/config/riscv/riscv-common.cc