public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] RISC-V: Clang-format add_vector_attribute function.
@ 2022-10-11  6:21 juzhe.zhong
  2022-10-12 13:03 ` Kito Cheng
  0 siblings, 1 reply; 2+ messages in thread
From: juzhe.zhong @ 2022-10-11  6:21 UTC (permalink / raw)
  To: gcc-patches; +Cc: kito.cheng, Ju-Zhe Zhong

From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>

gcc/ChangeLog:

        * config/riscv/riscv-vector-builtins.cc (add_vector_type_attribute): Clang-format function.

---
 gcc/config/riscv/riscv-vector-builtins.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/config/riscv/riscv-vector-builtins.cc b/gcc/config/riscv/riscv-vector-builtins.cc
index daf180801cc..4814b6ef6e7 100644
--- a/gcc/config/riscv/riscv-vector-builtins.cc
+++ b/gcc/config/riscv/riscv-vector-builtins.cc
@@ -88,8 +88,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.  */
-- 
2.36.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] RISC-V: Clang-format add_vector_attribute function.
  2022-10-11  6:21 [PATCH] RISC-V: Clang-format add_vector_attribute function juzhe.zhong
@ 2022-10-12 13:03 ` Kito Cheng
  0 siblings, 0 replies; 2+ messages in thread
From: Kito Cheng @ 2022-10-12 13:03 UTC (permalink / raw)
  To: juzhe.zhong; +Cc: gcc-patches

Committed, thanks!

On Tue, Oct 11, 2022 at 2:22 PM <juzhe.zhong@rivai.ai> wrote:
>
> From: Ju-Zhe Zhong <juzhe.zhong@rivai.ai>
>
> gcc/ChangeLog:
>
>         * config/riscv/riscv-vector-builtins.cc (add_vector_type_attribute): Clang-format function.
>
> ---
>  gcc/config/riscv/riscv-vector-builtins.cc | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/gcc/config/riscv/riscv-vector-builtins.cc b/gcc/config/riscv/riscv-vector-builtins.cc
> index daf180801cc..4814b6ef6e7 100644
> --- a/gcc/config/riscv/riscv-vector-builtins.cc
> +++ b/gcc/config/riscv/riscv-vector-builtins.cc
> @@ -88,8 +88,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.  */
> --
> 2.36.1
>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-10-12 13:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-11  6:21 [PATCH] RISC-V: Clang-format add_vector_attribute function juzhe.zhong
2022-10-12 13:03 ` Kito Cheng

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).