From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2093) id E2B123851148; Wed, 12 Oct 2022 12:52:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E2B123851148 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665579162; bh=lHMlyQ8IlZmn2EZse03pmT5BPyXyLthRY9wNibN2qgU=; h=From:To:Subject:Date:From; b=pag4ZS6Ugykv990Q32k69sOwnJ4lV0g0ThVsosRkVwZVd8v6uyQTt38535Y3yFtrN S4hEB/LTLUCFxmWwKlHubSBTprmyLfAYh7/NGk3nqSgdQeUPbdPIfbSfYog1SzvSNJ C91iT2oj4lM4k2Eouf/mA8wuSduoxxoLoc1wyPz8= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Kito Cheng To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-3253] RISC-V: Apply clang-format for riscv-vector-builtins.* [NFC] X-Act-Checkin: gcc X-Git-Author: Ju-Zhe Zhong X-Git-Refname: refs/heads/master X-Git-Oldrev: ef0d7978914b89021d66df3baf03ccc103cf7467 X-Git-Newrev: 0af2b2f241cbac81a6af503cc4d575a9a0aaf7c0 Message-Id: <20221012125242.E2B123851148@sourceware.org> Date: Wed, 12 Oct 2022 12:52:42 +0000 (GMT) List-Id: https://gcc.gnu.org/g:0af2b2f241cbac81a6af503cc4d575a9a0aaf7c0 commit r13-3253-g0af2b2f241cbac81a6af503cc4d575a9a0aaf7c0 Author: Ju-Zhe Zhong Date: Tue Oct 11 14:21:59 2022 +0800 RISC-V: Apply clang-format for riscv-vector-builtins.* [NFC] gcc/ChangeLog: * config/riscv/riscv-vector-builtins.cc (DEF_RVV_TYPE): Apply clang-format. (add_vector_type_attribute): Ditto. * config/riscv/riscv-vector-builtins.def (DEF_RVV_TYPE): Apply clang-format. * config/riscv/riscv-vector-builtins.h (DEF_RVV_TYPE): Apply clang-format. Diff: --- gcc/config/riscv/riscv-vector-builtins.cc | 8 ++++---- gcc/config/riscv/riscv-vector-builtins.def | 2 +- gcc/config/riscv/riscv-vector-builtins.h | 3 +-- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/gcc/config/riscv/riscv-vector-builtins.cc b/gcc/config/riscv/riscv-vector-builtins.cc index b7cd1c5cb21..99c482582d3 100644 --- a/gcc/config/riscv/riscv-vector-builtins.cc +++ b/gcc/config/riscv/riscv-vector-builtins.cc @@ -68,7 +68,7 @@ struct vector_type_info /* Information about each RVV type. */ static CONSTEXPR const vector_type_info vector_types[] = { -#define DEF_RVV_TYPE(NAME, NCHARS, ABI_NAME, ARGS...) \ +#define DEF_RVV_TYPE(NAME, NCHARS, ABI_NAME, ARGS...) \ {#NAME, #ABI_NAME, "u" #NCHARS #ABI_NAME}, #include "riscv-vector-builtins.def" }; @@ -76,7 +76,7 @@ static CONSTEXPR const vector_type_info vector_types[] = { /* The RVV types, with their built-in "__rvv..._t" name. Allow an index of NUM_VECTOR_TYPES, which always yields a null tree. */ -static GTY(()) tree abi_vector_types[NUM_VECTOR_TYPES + 1]; +static GTY (()) tree abi_vector_types[NUM_VECTOR_TYPES + 1]; /* Same, but with the riscv_vector.h "v..._t" name. */ extern GTY (()) rvv_builtin_types_t builtin_types[NUM_VECTOR_TYPES + 1]; @@ -124,8 +124,8 @@ add_vector_type_attribute (tree type, const char *mangled_name) { tree mangled_name_tree = get_identifier (mangled_name); tree value = tree_cons (NULL_TREE, mangled_name_tree, NULL_TREE); - TYPE_ATTRIBUTES (type) = tree_cons (get_identifier ("RVV type"), value, - TYPE_ATTRIBUTES (type)); + TYPE_ATTRIBUTES (type) + = tree_cons (get_identifier ("RVV type"), value, TYPE_ATTRIBUTES (type)); } /* Force TYPE to be a sizeless type. */ diff --git a/gcc/config/riscv/riscv-vector-builtins.def b/gcc/config/riscv/riscv-vector-builtins.def index 664734b881b..83603fedd57 100644 --- a/gcc/config/riscv/riscv-vector-builtins.def +++ b/gcc/config/riscv/riscv-vector-builtins.def @@ -32,7 +32,7 @@ along with GCC; see the file COPYING3. If not see TARGET_MIN_VLEN > 32. Otherwise the machine mode is VNx1SImode. */ #ifndef DEF_RVV_TYPE -#define DEF_RVV_TYPE(NAME, NCHARS, ABI_NAME, SCALAR_TYPE, VECTOR_MODE, \ +#define DEF_RVV_TYPE(NAME, NCHARS, ABI_NAME, SCALAR_TYPE, VECTOR_MODE, \ VECTOR_MODE_MIN_VLEN_32) #endif diff --git a/gcc/config/riscv/riscv-vector-builtins.h b/gcc/config/riscv/riscv-vector-builtins.h index 7d4b807f33c..7f4e89cd255 100644 --- a/gcc/config/riscv/riscv-vector-builtins.h +++ b/gcc/config/riscv/riscv-vector-builtins.h @@ -30,8 +30,7 @@ const unsigned int MAX_TUPLE_SIZE = 8; "vector types" for brevity. */ enum vector_type_index { -#define DEF_RVV_TYPE(NAME, ABI_NAME, NCHARS, ARGS...) \ - VECTOR_TYPE_##NAME, +#define DEF_RVV_TYPE(NAME, ABI_NAME, NCHARS, ARGS...) VECTOR_TYPE_##NAME, #include "riscv-vector-builtins.def" NUM_VECTOR_TYPES };