diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2023-11-27 22:01:44 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2023-12-04 14:38:10 +0800 |
commit | 9e12010b5e724277ea44c300630802f464407d8d (patch) | |
tree | ed338469111bcd01caae1a8117c134d6a636b762 /gcc/function.h | |
parent | 26b1599d83ddd5b5ac6fb845549e66acc45981f6 (diff) | |
download | gcc-9e12010b5e724277ea44c300630802f464407d8d.zip gcc-9e12010b5e724277ea44c300630802f464407d8d.tar.gz gcc-9e12010b5e724277ea44c300630802f464407d8d.tar.bz2 |
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.
Diffstat (limited to 'gcc/function.h')
0 files changed, 0 insertions, 0 deletions