From patchwork Tue Oct 17 11:34:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lehua Ding X-Patchwork-Id: 154105 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:612c:2908:b0:403:3b70:6f57 with SMTP id ib8csp4071373vqb; Tue, 17 Oct 2023 04:42:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHZjwjOM5+4D+u5R9LxLNsiMfNbqS79hmaMzY4dGMOrmenmnXaBXcGBV3PxaGdf/P2vcLT0 X-Received: by 2002:a05:6808:d4b:b0:3a7:2690:94d5 with SMTP id w11-20020a0568080d4b00b003a7269094d5mr2464647oik.8.1697542976195; Tue, 17 Oct 2023 04:42:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697542976; cv=pass; d=google.com; s=arc-20160816; b=TpvRPmGbjI1Zlm5yVTIdjkbihk7lqdFkhqUipXVxNklY42CIGxx9cIb6OcI3C1Oqg5 IZkV2iVmJL4srnL57A9TUsEP1bWs9BMGm4msA9xd17GIaMp0IYCVdm+xYkI1/daGiUXM eXbQE8f1a+dko/O/rGehRgqtCdAOgF0BtBJxSZiDJ2+Vul5FmH11Z4jzcru8/0ypW1DK 5nejSKMIu6CPvU70GfSDURyX45SJ18vL6xfkNHLMLM7no6W0s0/l96PsvMqqEpO6EWq3 WywG3z3iwkNZRNPpZ0Qpl3cA7UxDSJV/gJ9Aj/OcunetAzh0UeNYv+OffFYnHIIQT4p2 VPXw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:feedback-id :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:arc-filter:dmarc-filter :delivered-to; bh=kG6aidKbxooel4Kjw+k/9nnmqbJjFiv85WbiuV6Uf54=; fh=x/Q0OlwHuvCZ3FpkiZPiUSvevOYVxUAi4aNnf76mUPQ=; b=GNq6d5qs8D7KBo2sOhd4brqq1YmgAE4pnbjI2htMIYtctWfaihrcTLrnpan9D5gL/J Igr0ftGl2hd2CkRKxxOZHWnL/10HoEnNRKVMkvXz8UAHykk8Lutw8HCh3fZsgdxvpFPh pQ5VBhfnBLYrqpGrS8Ct5ijARber4TPced/8NEn3lJUQL6aBEgsVDdDWH7UkRzDGBA20 iwflvsVTNkOFricb0fPRf5FQ8Ek4GeP1+QtthScpiQpHnnfu9QK7ZChc3WJ/wTRMfAUs H+mALWPF+PB9QMS4XIvg52yt275ct6MinoAczuxwAlF1u+buFF4kL/fYji/54aJiXGJg EMzg== ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id ei6-20020ad45a06000000b0066cffad7f5bsi848898qvb.137.2023.10.17.04.42.56 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 04:42:56 -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; arc=pass (i=1); 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 55B3C38618A3 for ; Tue, 17 Oct 2023 11:41:47 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbg150.qq.com (smtpbg150.qq.com [18.132.163.193]) by sourceware.org (Postfix) with ESMTPS id C013C3856964 for ; Tue, 17 Oct 2023 11:35:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C013C3856964 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C013C3856964 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=18.132.163.193 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697542559; cv=none; b=ieHkpTtZ/c8uLDY84JJEsnG+5lz8K/Pv9Dtih6XFz2JUMx3TQk7w9E+czRfVN1ePdy7slNn6QMn+hnQop1ITul0vaPGeYKb3o2K6ydCdrAwcL3LoxPlCCZqrErlnz74W444qHIxrjI4Sx8uW40cmfTmvBp3zPppCSpW666bph44= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1697542559; c=relaxed/simple; bh=9R3lOAkE7wzeW3fGQFztHFeWeAYC/YwvLkHtTogxNjc=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=jT65bk7KUIbVUNpaES/dIqRcBe9Q+UTwrYeMs5Hun/qL1mH0uiKygyxQgCUASkHg0Y0sIuLuJcSVsqxXI04q2jSTPcfJcwpQlLL4ALdOUEyhrZnksuDUASUP0Z0+kGR1RMqQ/RJWUoDlWqWroI1pVxPcZUR+PGxc7TXcqYWhG7A= ARC-Authentication-Results: i=1; server2.sourceware.org X-QQ-mid: bizesmtp62t1697542550tzdoqrnm Received: from rios-cad121.hadoop.rioslab.org ( [58.60.1.9]) by bizesmtp.qq.com (ESMTP) with id ; Tue, 17 Oct 2023 19:35:49 +0800 (CST) X-QQ-SSF: 01400000000000C0F000000A0000000 X-QQ-FEAT: PS/N6jJLnDZ/whPwfzRlrchfQAXtprLCD1zZDatmZPprCJ/beYWxSGQySUgcQ YmxnUH0WbAcNuYw74SoOJdBTaii7vQ92litI0PuCzb0pgsSZC01VQu8Q+u3BnF2WLGzn/Hd ABXr9etjbXfPe7dXC8qaeGM14kO7m5BD2yfTfMlzEvfWjowCYXywhjfYKz/ND2S9TilswB4 AHn8epUWkDePYWN5QRng6nFJAE6F3BFSg+W7bJuDWjO1KvIEdDsV/fuff53RHUt7lrsnc2Q eFWfp8Rd6nbUGRh5cAPs+CdJcGqoCgqPpGORaxHlCPRqLT3X6ppmbW1TnHHvdzW5TmGw+Rw PwO7Vxu5F+mZbRr2VB0uwaAi4f3SgMN1drBHcFIOoVfYTZ+/HCOVmt0MsyESA6x3zcNDkXE X-QQ-GoodBg: 2 X-BIZMAIL-ID: 15121954749117994705 From: Lehua Ding To: gcc-patches@gcc.gnu.org Cc: juzhe.zhong@rivai.ai, kito.cheng@gmail.com, rdapp.gcc@gmail.com, palmer@rivosinc.com, jeffreyalaw@gmail.com, lehua.ding@rivai.ai Subject: [PATCH V2 12/14] RISC-V: P12: Delete riscv-vsetvl.h Date: Tue, 17 Oct 2023 19:34:58 +0800 Message-Id: <20231017113500.1160997-13-lehua.ding@rivai.ai> X-Mailer: git-send-email 2.36.3 In-Reply-To: <20231017113500.1160997-1-lehua.ding@rivai.ai> References: <20231017113500.1160997-1-lehua.ding@rivai.ai> MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz6a-0 X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, 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.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780002823929514388 X-GMAIL-MSGID: 1780002823929514388 This sub-patch delete the unused header file riscv-vsetvl.h since we no need export any function. gcc/ChangeLog: * config/riscv/t-riscv: Removed riscv-vsetvl.h * config/riscv/riscv-vsetvl.h: Removed. --- gcc/config/riscv/riscv-vsetvl.h | 59 --------------------------------- gcc/config/riscv/t-riscv | 2 +- 2 files changed, 1 insertion(+), 60 deletions(-) delete mode 100644 gcc/config/riscv/riscv-vsetvl.h -- 2.36.3 diff --git a/gcc/config/riscv/riscv-vsetvl.h b/gcc/config/riscv/riscv-vsetvl.h deleted file mode 100644 index 16c84e0684b..00000000000 --- a/gcc/config/riscv/riscv-vsetvl.h +++ /dev/null @@ -1,59 +0,0 @@ -/* VSETVL pass header for RISC-V 'V' Extension for GNU compiler. - Copyright (C) 2022-2023 Free Software Foundation, Inc. - Contributed by Juzhe Zhong (juzhe.zhong@rivai.ai), RiVAI Technologies Ltd. - -This file is part of GCC. - -GCC is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 3, or(at your option) -any later version. - -GCC is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. - -You should have received a copy of the GNU General Public License -along with GCC; see the file COPYING3. If not see -. */ - -#ifndef GCC_RISCV_VSETVL_H -#define GCC_RISCV_VSETVL_H - -namespace riscv_vector { - -/* Classification of vsetvl instruction. */ -enum vsetvl_type -{ - VSETVL_NORMAL, - VSETVL_VTYPE_CHANGE_ONLY, - VSETVL_DISCARD_RESULT, - NUM_VSETVL_TYPE -}; - -enum emit_type -{ - /* emit_insn directly. */ - EMIT_DIRECT, - EMIT_BEFORE, - EMIT_AFTER, -}; - -enum def_type -{ - REAL_SET = 1 << 0, - PHI_SET = 1 << 1, - BB_HEAD_SET = 1 << 2, - BB_END_SET = 1 << 3, - /* ??? TODO: In RTL_SSA framework, we have REAL_SET, - PHI_SET, BB_HEAD_SET, BB_END_SET and - CLOBBER_DEF def_info types. Currently, - we conservatively do not optimize clobber - def since we don't see the case that we - need to optimize it. */ - CLOBBER_DEF = 1 << 4 -}; - -} // namespace riscv_vector -#endif diff --git a/gcc/config/riscv/t-riscv b/gcc/config/riscv/t-riscv index f137e1f17ef..dd17056fe82 100644 --- a/gcc/config/riscv/t-riscv +++ b/gcc/config/riscv/t-riscv @@ -64,7 +64,7 @@ riscv-vsetvl.o: $(srcdir)/config/riscv/riscv-vsetvl.cc \ $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(RTL_H) $(REGS_H) \ $(TARGET_H) tree-pass.h df.h rtl-ssa.h cfgcleanup.h insn-config.h \ insn-attr.h insn-opinit.h tm-constrs.h cfgrtl.h cfganal.h lcm.h \ - predict.h profile-count.h $(srcdir)/config/riscv/riscv-vsetvl.h \ + predict.h profile-count.h \ $(srcdir)/config/riscv/riscv-vsetvl.def $(COMPILER) -c $(ALL_COMPILERFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \ $(srcdir)/config/riscv/riscv-vsetvl.cc