public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Kito Cheng <kito.cheng@gmail.com>
To: juzhe.zhong@rivai.ai
Cc: gcc-patches@gcc.gnu.org
Subject: Re: [PATCH] RISC-V: Refine riscv-vector-builtins.o include files and makefile.
Date: Wed, 12 Oct 2022 11:39:54 +0800	[thread overview]
Message-ID: <CA+yXCZA4EhYAoe5ygNHm0VKYJbGbfF4Se_UVe95wuDEuuJdHQQ@mail.gmail.com> (raw)
In-Reply-To: <20221011063156.115984-1-juzhe.zhong@rivai.ai>

I would suggest we do not include those header files unless we really need that.

On Tue, Oct 11, 2022 at 2:32 PM <juzhe.zhong@rivai.ai> wrote:
>
> From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
>
> gcc/ChangeLog:
>
>         * config/riscv/riscv-vector-builtins.cc: Change include files same as ARM SVE.
>         * config/riscv/t-riscv: Refine makefile.
>
> ---
>  gcc/config/riscv/riscv-vector-builtins.cc |  9 +++++++--
>  gcc/config/riscv/t-riscv                  | 14 ++++++++------
>  2 files changed, 15 insertions(+), 8 deletions(-)
>
> diff --git a/gcc/config/riscv/riscv-vector-builtins.cc b/gcc/config/riscv/riscv-vector-builtins.cc
> index 4814b6ef6e7..61f5f9802cf 100644
> --- a/gcc/config/riscv/riscv-vector-builtins.cc
> +++ b/gcc/config/riscv/riscv-vector-builtins.cc
> @@ -33,17 +33,22 @@
>  #include "recog.h"
>  #include "diagnostic.h"
>  #include "expr.h"
> +#include "basic-block.h"
>  #include "function.h"
>  #include "fold-const.h"
> +#include "gimple.h"
> +#include "gimple-iterator.h"
>  #include "gimplify.h"
>  #include "explow.h"
> +#include "emit-rtl.h"
> +#include "tree-vector-builder.h"
>  #include "stor-layout.h"
> +#include "regs.h"
>  #include "alias.h"
> +#include "gimple-fold.h"
>  #include "langhooks.h"
>  #include "stringpool.h"
>  #include "attribs.h"
> -#include "targhooks.h"
> -#include "regs.h"
>  #include "riscv-vector-builtins.h"
>
>  using namespace riscv_vector;
> diff --git a/gcc/config/riscv/t-riscv b/gcc/config/riscv/t-riscv
> index 2f060437c23..82010721348 100644
> --- a/gcc/config/riscv/t-riscv
> +++ b/gcc/config/riscv/t-riscv
> @@ -6,12 +6,14 @@ riscv-builtins.o: $(srcdir)/config/riscv/riscv-builtins.cc $(CONFIG_H) \
>                 $(srcdir)/config/riscv/riscv-builtins.cc
>
>  riscv-vector-builtins.o: $(srcdir)/config/riscv/riscv-vector-builtins.cc \
> -  $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) $(TM_P_H) \
> -  memmodel.h insn-codes.h $(OPTABS_H) $(RECOG_H) $(DIAGNOSTIC_H) $(EXPR_H) \
> -  $(FUNCTION_H) fold-const.h gimplify.h explow.h stor-layout.h $(REGS_H) \
> -  alias.h langhooks.h attribs.h stringpool.h \
> -  $(srcdir)/config/riscv/riscv-vector-builtins.h \
> -       $(srcdir)/config/riscv/riscv-vector-builtins.def
> +  $(srcdir)/config/riscv/riscv-vector-builtins.def \
> +  $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \
> +  $(TM_P_H) memmodel.h insn-codes.h $(OPTABS_H) $(RECOG_H) $(DIAGNOSTIC_H) \
> +  $(EXPR_H) $(BASIC_BLOCK_H) $(FUNCTION_H) fold-const.h $(GIMPLE_H) \
> +  gimple-iterator.h gimplify.h explow.h $(EMIT_RTL_H) tree-vector-builder.h \
> +  stor-layout.h $(REG_H) alias.h gimple-fold.h langhooks.h \
> +  stringpool.h \
> +  $(srcdir)/config/riscv/riscv-vector-builtins.h
>         $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
>                 $(srcdir)/config/riscv/riscv-vector-builtins.cc
>
> --
> 2.36.1
>

  reply	other threads:[~2022-10-12  3:40 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-11  6:31 juzhe.zhong
2022-10-12  3:39 ` Kito Cheng [this message]
2022-10-12  3:48   ` juzhe.zhong
2022-10-12  3:56   ` Jeff Law

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=CA+yXCZA4EhYAoe5ygNHm0VKYJbGbfF4Se_UVe95wuDEuuJdHQQ@mail.gmail.com \
    --to=kito.cheng@gmail.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=juzhe.zhong@rivai.ai \
    /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: link
Be 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).