public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Update document for VECTOR_MODES_WITH_PREFIX
@ 2022-06-06  6:23 Kewen.Lin
  2022-06-06 10:01 ` Richard Sandiford
  0 siblings, 1 reply; 3+ messages in thread
From: Kewen.Lin @ 2022-06-06  6:23 UTC (permalink / raw)
  To: GCC Patches; +Cc: Richard Sandiford, Richard Biener

Hi,

r10-3912 updated the format of VECTOR_MODES_WITH_PREFIX by
adding one more parameter ORDER, the related document is out
of date.  So update the document for ORDER.

Is it ok for trunk?

BR,
Kewen
-----

gcc/ChangeLog:

	* machmode.def (VECTOR_MODES_WITH_PREFIX): Update document for
	parameter ORDER.
---
 gcc/machmode.def | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/gcc/machmode.def b/gcc/machmode.def
index b62a5fbc683..d62563601fc 100644
--- a/gcc/machmode.def
+++ b/gcc/machmode.def
@@ -142,9 +142,10 @@ along with GCC; see the file COPYING3.  If not see
 	than two bytes (if CLASS is FLOAT).  CLASS must be INT or
 	FLOAT.  The names follow the same rule as VECTOR_MODE uses.

-     VECTOR_MODES_WITH_PREFIX (PREFIX, CLASS, WIDTH);
+     VECTOR_MODES_WITH_PREFIX (PREFIX, CLASS, WIDTH, ORDER);
 	Like VECTOR_MODES, but start the mode names with PREFIX instead
-	of the usual "V".
+	of the usual "V".  ORDER is the top-level sorting order of the
+	mode, with smaller numbers indicating a higher priority.

      VECTOR_BOOL_MODE (NAME, COUNT, COMPONENT, BYTESIZE)
         Create a vector mode called NAME that contains COUNT boolean
--
2.27.0

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

* Re: [PATCH] Update document for VECTOR_MODES_WITH_PREFIX
  2022-06-06  6:23 [PATCH] Update document for VECTOR_MODES_WITH_PREFIX Kewen.Lin
@ 2022-06-06 10:01 ` Richard Sandiford
  2022-06-07  3:11   ` Kewen.Lin
  0 siblings, 1 reply; 3+ messages in thread
From: Richard Sandiford @ 2022-06-06 10:01 UTC (permalink / raw)
  To: Kewen.Lin; +Cc: GCC Patches, Richard Biener

"Kewen.Lin" <linkw@linux.ibm.com> writes:
> Hi,
>
> r10-3912 updated the format of VECTOR_MODES_WITH_PREFIX by
> adding one more parameter ORDER, the related document is out
> of date.  So update the document for ORDER.
>
> Is it ok for trunk?
>
> BR,
> Kewen
> -----
>
> gcc/ChangeLog:
>
> 	* machmode.def (VECTOR_MODES_WITH_PREFIX): Update document for
> 	parameter ORDER.

OK, thanks.

Richard

> ---
>  gcc/machmode.def | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/gcc/machmode.def b/gcc/machmode.def
> index b62a5fbc683..d62563601fc 100644
> --- a/gcc/machmode.def
> +++ b/gcc/machmode.def
> @@ -142,9 +142,10 @@ along with GCC; see the file COPYING3.  If not see
>  	than two bytes (if CLASS is FLOAT).  CLASS must be INT or
>  	FLOAT.  The names follow the same rule as VECTOR_MODE uses.
>
> -     VECTOR_MODES_WITH_PREFIX (PREFIX, CLASS, WIDTH);
> +     VECTOR_MODES_WITH_PREFIX (PREFIX, CLASS, WIDTH, ORDER);
>  	Like VECTOR_MODES, but start the mode names with PREFIX instead
> -	of the usual "V".
> +	of the usual "V".  ORDER is the top-level sorting order of the
> +	mode, with smaller numbers indicating a higher priority.
>
>       VECTOR_BOOL_MODE (NAME, COUNT, COMPONENT, BYTESIZE)
>          Create a vector mode called NAME that contains COUNT boolean
> --
> 2.27.0

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

* Re: [PATCH] Update document for VECTOR_MODES_WITH_PREFIX
  2022-06-06 10:01 ` Richard Sandiford
@ 2022-06-07  3:11   ` Kewen.Lin
  0 siblings, 0 replies; 3+ messages in thread
From: Kewen.Lin @ 2022-06-07  3:11 UTC (permalink / raw)
  To: richard.sandiford; +Cc: Richard Biener, GCC Patches

on 2022/6/6 18:01, Richard Sandiford wrote:
> "Kewen.Lin" <linkw@linux.ibm.com> writes:
>> Hi,
>>
>> r10-3912 updated the format of VECTOR_MODES_WITH_PREFIX by
>> adding one more parameter ORDER, the related document is out
>> of date.  So update the document for ORDER.
>>
>> Is it ok for trunk?
>>
>> BR,
>> Kewen
>> -----
>>
>> gcc/ChangeLog:
>>
>> 	* machmode.def (VECTOR_MODES_WITH_PREFIX): Update document for
>> 	parameter ORDER.
> 
> OK, thanks.

Thanks Richard!  Pushed as r13-997.

BR,
Kewen

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

end of thread, other threads:[~2022-06-07  3:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-06  6:23 [PATCH] Update document for VECTOR_MODES_WITH_PREFIX Kewen.Lin
2022-06-06 10:01 ` Richard Sandiford
2022-06-07  3:11   ` Kewen.Lin

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