public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Kito Cheng <kito@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-5434] RISC-V: Refine function args of some functions. Date: Fri, 27 Jan 2023 10:05:50 +0000 (GMT) [thread overview] Message-ID: <20230127100550.EFA283858D20@sourceware.org> (raw) https://gcc.gnu.org/g:e577b91bbaa7075655de4da4b8af95216d8b1f6d commit r13-5434-ge577b91bbaa7075655de4da4b8af95216d8b1f6d Author: Ju-Zhe Zhong <juzhe.zhong@rivai.ai> Date: Wed Jan 18 11:13:05 2023 +0800 RISC-V: Refine function args of some functions. gcc/ChangeLog: * config/riscv/riscv-vsetvl.cc (gen_vsetvl_pat): Refine function args. (emit_vsetvl_insn): Ditto. Diff: --- gcc/config/riscv/riscv-vsetvl.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/riscv/riscv-vsetvl.cc b/gcc/config/riscv/riscv-vsetvl.cc index 8b3fd33f558..45e14d0ff03 100644 --- a/gcc/config/riscv/riscv-vsetvl.cc +++ b/gcc/config/riscv/riscv-vsetvl.cc @@ -579,7 +579,7 @@ has_vector_insn (function *fn) /* Emit vsetvl instruction. */ static rtx -gen_vsetvl_pat (enum vsetvl_type insn_type, vl_vtype_info info, rtx vl) +gen_vsetvl_pat (enum vsetvl_type insn_type, const vl_vtype_info &info, rtx vl) { rtx avl = info.get_avl (); rtx sew = gen_int_mode (info.get_sew (), Pmode); @@ -599,7 +599,7 @@ gen_vsetvl_pat (enum vsetvl_type insn_type, vl_vtype_info info, rtx vl) } static rtx -gen_vsetvl_pat (rtx_insn *rinsn, const vector_insn_info info) +gen_vsetvl_pat (rtx_insn *rinsn, const vector_insn_info &info) { rtx new_pat; if (vsetvl_insn_p (rinsn) || vlmax_avl_p (info.get_avl ())) @@ -616,7 +616,7 @@ gen_vsetvl_pat (rtx_insn *rinsn, const vector_insn_info info) static void emit_vsetvl_insn (enum vsetvl_type insn_type, enum emit_type emit_type, - vl_vtype_info info, rtx vl, rtx_insn *rinsn) + const vl_vtype_info &info, rtx vl, rtx_insn *rinsn) { rtx pat = gen_vsetvl_pat (insn_type, info, vl); if (dump_file)
reply other threads:[~2023-01-27 10:05 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20230127100550.EFA283858D20@sourceware.org \ --to=kito@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).