public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH, doc] fix match-and-simplify API doc errors
@ 2015-05-07 23:37 Jim Wilson
  2015-05-08  8:56 ` Richard Biener
  0 siblings, 1 reply; 2+ messages in thread
From: Jim Wilson @ 2015-05-07 23:37 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 355 bytes --]

I noticed this while reading the match-and-simplify docs.  The
gimple_simplify API list has two built-in function cases with three
tree args.  The last one is supposed to have four tree args for a
ternary function (3 inputs and one output).  Similarly, in the
gimple_build API list, the built-in ternary function case with four
tree args is missing.

Jim

[-- Attachment #2: m-and-s.patch --]
[-- Type: text/x-patch, Size: 1966 bytes --]

2015-05-07  Jim Wilson  <jim.wilson@linaro.org>

	* doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
	arg to last gimple_simplify declaration.  Add missing gimple_build
	declaration for built-in function case with four tree args.

Index: doc/match-and-simplify.texi
===================================================================
--- doc/match-and-simplify.texi	(revision 222861)
+++ doc/match-and-simplify.texi	(working copy)
@@ -39,7 +39,7 @@
 @deftypefnx {GIMPLE function} tree gimple_simplify (enum tree_code, tree, tree, tree, tree, gimple_seq *, tree (*)(tree))
 @deftypefnx {GIMPLE function} tree gimple_simplify (enum built_in_function, tree, tree, gimple_seq *, tree (*)(tree))
 @deftypefnx {GIMPLE function} tree gimple_simplify (enum built_in_function, tree, tree, tree, gimple_seq *, tree (*)(tree))
-@deftypefnx {GIMPLE function} tree gimple_simplify (enum built_in_function, tree, tree, tree, gimple_seq *, tree (*)(tree))
+@deftypefnx {GIMPLE function} tree gimple_simplify (enum built_in_function, tree, tree, tree, tree, gimple_seq *, tree (*)(tree))
 The main GIMPLE API entry to the expression simplifications mimicing
 that of the GENERIC fold_@{unary,binary,ternary@} functions.
 @end deftypefn
@@ -64,6 +64,7 @@
 @deftypefnx {GIMPLE function} tree gimple_build (gimple_seq *, location_t, enum tree_code, tree, tree, tree, tree, tree (*valueize) (tree) = NULL);
 @deftypefnx {GIMPLE function} tree gimple_build (gimple_seq *, location_t, enum built_in_function, tree, tree, tree (*valueize) (tree) = NULL);
 @deftypefnx {GIMPLE function} tree gimple_build (gimple_seq *, location_t, enum built_in_function, tree, tree, tree, tree (*valueize) (tree) = NULL);
+@deftypefnx {GIMPLE function} tree gimple_build (gimple_seq *, location_t, enum built_in_function, tree, tree, tree, tree, tree (*valueize) (tree) = NULL);
 @deftypefnx {GIMPLE function} tree gimple_convert (gimple_seq *, location_t, tree, tree);
 @end deftypefn
 

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

* Re: [PATCH, doc] fix match-and-simplify API doc errors
  2015-05-07 23:37 [PATCH, doc] fix match-and-simplify API doc errors Jim Wilson
@ 2015-05-08  8:56 ` Richard Biener
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2015-05-08  8:56 UTC (permalink / raw)
  To: Jim Wilson; +Cc: gcc-patches

On Fri, May 8, 2015 at 1:37 AM, Jim Wilson <jim.wilson@linaro.org> wrote:
> I noticed this while reading the match-and-simplify docs.  The
> gimple_simplify API list has two built-in function cases with three
> tree args.  The last one is supposed to have four tree args for a
> ternary function (3 inputs and one output).  Similarly, in the
> gimple_build API list, the built-in ternary function case with four
> tree args is missing.

Oops - thanks.

Richard.


> Jim

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

end of thread, other threads:[~2015-05-08  8:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-07 23:37 [PATCH, doc] fix match-and-simplify API doc errors Jim Wilson
2015-05-08  8:56 ` Richard Biener

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