diff mbox

[doc] fix match-and-simplify API doc errors

Message ID CABXYE2XR4hnadMX02ewrZ4VWpa1HQ+kNAFi6riovQ5RZf7XbQQ@mail.gmail.com
State New
Headers show

Commit Message

Jim Wilson May 7, 2015, 11:37 p.m. UTC
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
diff mbox

Patch

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