From patchwork Tue Oct 11 06:31:56 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "juzhe.zhong@rivai.ai" X-Patchwork-Id: 1904 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1941032wrs; Mon, 10 Oct 2022 23:32:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5bpgQc7uMvtgyiE20LWatP/MkbSJQ8l1vnJe/GnifT/foRaw/9PvGzrQSyaqRorbMWeVSO X-Received: by 2002:a50:ec84:0:b0:459:ae8:8025 with SMTP id e4-20020a50ec84000000b004590ae88025mr21020607edr.321.1665469958329; Mon, 10 Oct 2022 23:32:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665469958; cv=none; d=google.com; s=arc-20160816; b=gH3R6jJyvk3/E91cWiapYdh0IXV8tkybHbwasM3phxr3RAxcgCsKnzzK42sptLCG2Z NkBl63jdbb/6vMoXYRLx8PZTF9zC0u//OHwl0AwwEz46U9Bj1fg57NVohPwMlJc7veJF Jf/5gSVMR1NhNIkA78BTT3WOXnzsDaX7gUW76qSo0eJ5GEtewtBYNmeRI5Qu30kL60OE a0BLGfUkYE2S8AiVAQKKqpGfPPdvt3Ht958HGCE6p7zg9m2+s1rXoRz4anG2Bg8eiPA0 juYYX5fdVZOGDILTauubQKgv3xYdpV9hgPzRhOXdVwdClu++3xCTtmJVmtcCe+aQs1Ql xgbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:to :from:dmarc-filter:delivered-to; bh=ZJPMtIR/2B3fNGpONzHoaF4vzTrxfx4rBOnYAI3sS2g=; b=0cBfEGuC0BTy5e+tPRsF/cC+bcqUqzW7wRoD5lsh8EhZa4VvHEpziXpRtTHWsnXW9x Kx046ZVj1BeadJn8dTI1AKsrI94E6sqj5E3jNrNQH4+Wad0xW06U/tK4NrcgBlz3ybgG Gd0pHp/TY1w00BjM7uzgP4oyE7H4e4pwjK1RbcccUl+dRMsijpGy6K1N3GgqRKuJSWNu 2+PudB7DGq3Ezx8LBGc6F49mBIgiOYFnm1pF0lUxVIDrD+TaUezq7pkNe/LSfonyjTlE AjjlKvcIuM9QfRoXrkqM0veBr99SCpsytSQ6mnVv7crgfRPdvDw2mSnOFpGo9Dgcyz9y lBhQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id p17-20020a056402501100b004597b778b3bsi12146501eda.75.2022.10.10.23.32.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Oct 2022 23:32:38 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 420DC385AC31 for ; Tue, 11 Oct 2022 06:32:33 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgau1.qq.com (smtpbgau1.qq.com [54.206.16.166]) by sourceware.org (Postfix) with ESMTPS id DE0E93858C2D for ; Tue, 11 Oct 2022 06:32:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org DE0E93858C2D Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai X-QQ-mid: bizesmtp77t1665469919t1zh9bkz Received: from server1.localdomain ( [42.247.22.65]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 11 Oct 2022 14:31:58 +0800 (CST) X-QQ-SSF: 01400000000000D0J000000A0000000 X-QQ-FEAT: D6RqbDSxuq4HKGDQXFLmeKPSguRhHOSqVTEQzm3ih0RibLnGE1qbKHsYKtyVs 8P0jBeOTVPDW6mDiPUdOdl0MEGWPvwa1Go+ymrVzqTwaEeiyT5yRkRXhRWCqK5vyONKCFl/ yaIOasJnulNZ476TQLooqQo3uzOmPvtAcXvUt09f3crIuYP4Gh+/DP9NbWyB7qpUs+qtg75 /ZyDyGs2H6Si2PGtviMLqujeYXoc1+1iNu3536g22ad7KLcNsIGSJ8tnPauOMnDK55487f9 BpsBrGZGykw/8j0CU2jIgMP7ZzQWfgaHeoJELXVeOuif8FsaspuGe5oTqb5ME2/1w89SlYO zrZbFXurKvo4Mqnjy3n+9d/IPFIIOqGGdel15n7tHdaJJxLwih9t/Bf6sxgDgmD3ADlWy0+ X-QQ-GoodBg: 2 From: juzhe.zhong@rivai.ai To: gcc-patches@gcc.gnu.org Subject: [PATCH] RISC-V: Refine riscv-vector-builtins.o include files and makefile. Date: Tue, 11 Oct 2022 14:31:56 +0800 Message-Id: <20221011063156.115984-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvr:qybglogicsvr7 X-Spam-Status: No, score=-12.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: kito.cheng@gmail.com, Ju-Zhe Zhong Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746371827147527117?= X-GMAIL-MSGID: =?utf-8?q?1746371827147527117?= From: Ju-Zhe Zhong 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