diff mbox series

RISC-V: Change parse_insn into public for future use.

Message ID 20230118030659.68604-1-juzhe.zhong@rivai.ai
State New
Headers show
Series RISC-V: Change parse_insn into public for future use. | expand

Commit Message

钟居哲 Jan. 18, 2023, 3:06 a.m. UTC
From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>

gcc/ChangeLog:

        * config/riscv/riscv-vsetvl.h: Change it into public.

---
 gcc/config/riscv/riscv-vsetvl.h | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

Comments

Jeff Law Jan. 22, 2023, 7:31 p.m. UTC | #1
On 1/17/23 20:06, juzhe.zhong@rivai.ai wrote:
> From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
> 
> gcc/ChangeLog:
> 
>          * config/riscv/riscv-vsetvl.h: Change it into public.
OK.
jeff
Kito Cheng Jan. 27, 2023, 9:41 a.m. UTC | #2
committed, thanks!

On Mon, Jan 23, 2023 at 3:32 AM Jeff Law via Gcc-patches <
gcc-patches@gcc.gnu.org> wrote:

>
>
> On 1/17/23 20:06, juzhe.zhong@rivai.ai wrote:
> > From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
> >
> > gcc/ChangeLog:
> >
> >          * config/riscv/riscv-vsetvl.h: Change it into public.
> OK.
> jeff
>
diff mbox series

Patch

diff --git a/gcc/config/riscv/riscv-vsetvl.h b/gcc/config/riscv/riscv-vsetvl.h
index f24ad981f65..3b68bf638ae 100644
--- a/gcc/config/riscv/riscv-vsetvl.h
+++ b/gcc/config/riscv/riscv-vsetvl.h
@@ -260,9 +260,6 @@  private:
      Since RTL_SSA can not be enabled when optimize == 0, we don't initialize
      the m_insn.  */
   void parse_insn (rtx_insn *);
-  /* This is only called by lazy_vsetvl subroutine when optimize > 0.
-     We use RTL_SSA framework to initialize the insn_info.  */
-  void parse_insn (rtl_ssa::insn_info *);
 
   friend class vector_infos_manager;
 
@@ -272,6 +269,10 @@  public:
       m_insn (nullptr)
   {}
 
+  /* This is only called by lazy_vsetvl subroutine when optimize > 0.
+     We use RTL_SSA framework to initialize the insn_info.  */
+  void parse_insn (rtl_ssa::insn_info *);
+
   bool operator> (const vector_insn_info &) const;
   bool operator>= (const vector_insn_info &) const;
   bool operator== (const vector_insn_info &) const;