]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V: Apply clang-format for riscv-vector-builtins.* [NFC]
authorJu-Zhe Zhong <juzhe.zhong@rivai.ai>
Tue, 11 Oct 2022 06:21:59 +0000 (14:21 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Wed, 12 Oct 2022 12:51:59 +0000 (20:51 +0800)
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.

gcc/config/riscv/riscv-vector-builtins.cc
gcc/config/riscv/riscv-vector-builtins.def
gcc/config/riscv/riscv-vector-builtins.h

index b7cd1c5cb21fe9f752544a5a92086aa4f09e890b..99c482582d3f5904efeb54e5a3691290d3d95680 100644 (file)
@@ -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.  */
index 664734b881be26071eb25c4d28495b92545dbbc6..83603fedd576cd82ba8befdd1a15045494ac4094 100644 (file)
@@ -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
 
index 7d4b807f33c3917c3c9dae7fb6f2d7bd6bca61ba..7f4e89cd2555f3be7cba2538aa7d06e952f1b220 100644 (file)
@@ -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
 };