From c3d79243214c8fbfc6696c249232ccfb033a59ef Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 3 Dec 2014 20:59:10 +0100 Subject: [PATCH] gimple.texi (gimple_build_assign_with_ops): Remove. * doc/gimple.texi (gimple_build_assign_with_ops): Remove. (gimple_build_assign): Document the new overloads. From-SVN: r218330 --- gcc/ChangeLog | 5 +++++ gcc/doc/gimple.texi | 41 +++++++++++++++++++++++++++-------------- 2 files changed, 32 insertions(+), 14 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 928b6b8d08c..eff109f584c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-12-03 Jakub Jelinek + + * doc/gimple.texi (gimple_build_assign_with_ops): Remove. + (gimple_build_assign): Document the new overloads. + 2014-12-03 Michael Meissner PR target/64019 diff --git a/gcc/doc/gimple.texi b/gcc/doc/gimple.texi index 621c8600f9c..bdabf2db56f 100644 --- a/gcc/doc/gimple.texi +++ b/gcc/doc/gimple.texi @@ -1124,9 +1124,35 @@ already have a tree expression that you want to convert into a tuple. However, try to avoid building expression trees for the sole purpose of calling this function. If you already have the operands in separate trees, it is better to use -@code{gimple_build_assign_with_ops}. +@code{gimple_build_assign} with @code{enum tree_code} argument and separate +arguments for each operand. @end deftypefn +@deftypefn {GIMPLE function} gimple gimple_build_assign @ +(tree lhs, enum tree_code subcode, tree op1, tree op2, tree op3) +This function is similar to two operand @code{gimple_build_assign}, +but is used to build a @code{GIMPLE_ASSIGN} statement when the operands of the +right-hand side of the assignment are already split into +different operands. + +The left-hand side is an lvalue passed in lhs. Subcode is the +@code{tree_code} for the right-hand side of the assignment. Op1, op2 and op3 +are the operands. +@end deftypefn + +@deftypefn {GIMPLE function} gimple gimple_build_assign @ +(tree lhs, enum tree_code subcode, tree op1, tree op2) +Like the above 5 operand @code{gimple_build_assign}, but with the last +argument @code{NULL} - this overload should not be used for +@code{GIMPLE_TERNARY_RHS} assignments. +@end deftypefn + +@deftypefn {GIMPLE function} gimple gimple_build_assign @ +(tree lhs, enum tree_code subcode, tree op1) +Like the above 4 operand @code{gimple_build_assign}, but with the last +argument @code{NULL} - this overload should be used only for +@code{GIMPLE_UNARY_RHS} and @code{GIMPLE_SINGLE_RHS} assignments. +@end deftypefn @deftypefn {GIMPLE function} gimple gimplify_assign (tree dst, tree src, gimple_seq *seq_p) Build a new @code{GIMPLE_ASSIGN} tuple and append it to the end of @@ -1139,19 +1165,6 @@ case they will be converted to a gimple operand if necessary. This function returns the newly created @code{GIMPLE_ASSIGN} tuple. -@deftypefn {GIMPLE function} gimple gimple_build_assign_with_ops @ -(enum tree_code subcode, tree lhs, tree op1, tree op2) -This function is similar to @code{gimple_build_assign}, but is used to -build a @code{GIMPLE_ASSIGN} statement when the operands of the -right-hand side of the assignment are already split into -different operands. - -The left-hand side is an lvalue passed in lhs. Subcode is the -@code{tree_code} for the right-hand side of the assignment. Op1 and op2 -are the operands. If op2 is null, subcode must be a @code{tree_code} -for a unary expression. -@end deftypefn - @deftypefn {GIMPLE function} {enum tree_code} gimple_assign_rhs_code (gimple g) Return the code of the expression computed on the @code{RHS} of assignment statement @code{G}. -- 2.30.2