]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Adjusting the comments of the emit_vlmax_insn/emit_vlmax_insn_lra/emit_nonvlm...
authorLehua Ding <lehua.ding@rivai.ai>
Thu, 21 Sep 2023 07:02:32 +0000 (15:02 +0800)
committerLehua Ding <lehua.ding@rivai.ai>
Thu, 21 Sep 2023 10:12:40 +0000 (18:12 +0800)
commit5ff4431675c0d0c800d4a983254e94a6b401c14d
treef485897558079deb0eedf5131ab0551126664728
parent7439f40dc17f47480620beadf5b2f5784b59aefe
RISC-V: Adjusting the comments of the emit_vlmax_insn/emit_vlmax_insn_lra/emit_nonvlmax_insn functions

V2 Change: Use Robin's comments.

This patch adjusts the comments of the
emit_vlmax_insn/emit_vlmax_insn_lra/emit_nonvlmax_insn functions.
The purpose of the adjustment is to make it clear that vlmax here is not
VLMAX as defined inside the RVV ISA. This is because this function is used
by RVV mode (e.g. RVVM1SImode) in addition to VLS mode (V16QI). For RVV mode,
it means the same thing, for VLS mode, it indicates setting the vl to the
number of units of the mode. Changed the comment because I didn't think of
a better name. If there is a suitable name, feel free to discuss it.

gcc/ChangeLog:

* config/riscv/riscv-v.cc (emit_vlmax_insn): Adjust comments.
(emit_nonvlmax_insn): Adjust comments.
(emit_vlmax_insn_lra): Adjust comments.

Co-Authored-By: Robin Dapp <rdapp.gcc@gmail.com>
gcc/config/riscv/riscv-v.cc