summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2013-10-29 17:45:00 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>2013-10-29 17:45:00 +0000
commit8848375530940e3e32abaf9e3bde2870755d2d34 (patch)
tree1f0db336ef1c871f79694c01a5ea47192bb05fc2
parentcc49301189f0cad8a7a88e26bd67dbc5dd52ddfa (diff)
downloadgcc-8848375530940e3e32abaf9e3bde2870755d2d34.tar.gz
* doc/tree-ssa.texi (gimple_phi_result): Document.
(gimple_phi_num_args, gimple_phi_arg): Likewise. (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise. (PHI_RESULT, PHI_NUM_ARGS): Remove. (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@204169 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/doc/tree-ssa.texi26
2 files changed, 20 insertions, 14 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7400792a936..87393299949 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2013-10-29 Martin Liska <marxin.liska@gmail.com>
+
+ * doc/tree-ssa.texi (gimple_phi_result): Document.
+ (gimple_phi_num_args, gimple_phi_arg): Likewise.
+ (gimple_phi_arg_edge, gimple_phi_arg_def): Likewise.
+ (PHI_RESULT, PHI_NUM_ARGS): Remove.
+ (PHI_ARG_ELT, PHI_ARG_EDGE, PHI_ARG_DEF): Likewise.
+
2013-10-29 Andrew MacLeod <amacleod@redhat.com>
* expr.h: Revert change and include tree-core.h.
diff --git a/gcc/doc/tree-ssa.texi b/gcc/doc/tree-ssa.texi
index aaf741b33f1..93f596d07a4 100644
--- a/gcc/doc/tree-ssa.texi
+++ b/gcc/doc/tree-ssa.texi
@@ -526,31 +526,29 @@ the result of ``merging'' @code{a_1}, @code{a_2} and @code{a_3}.
Hence, PHI nodes mean ``one of these operands. I don't know
which''.
-The following macros can be used to examine PHI nodes
+The following functions can be used to examine PHI nodes
-@defmac PHI_RESULT (@var{phi})
+@defun gimple_phi_result (@var{phi})
Returns the @code{SSA_NAME} created by PHI node @var{phi} (i.e.,
@var{phi}'s LHS)@.
-@end defmac
+@end defun
-@defmac PHI_NUM_ARGS (@var{phi})
+@defun gimple_phi_num_args (@var{phi})
Returns the number of arguments in @var{phi}. This number is exactly
the number of incoming edges to the basic block holding @var{phi}@.
-@end defmac
+@end defun
-@defmac PHI_ARG_ELT (@var{phi}, @var{i})
-Returns a tuple representing the @var{i}th argument of @var{phi}@.
-Each element of this tuple contains an @code{SSA_NAME} @var{var} and
-the incoming edge through which @var{var} flows.
-@end defmac
+@defun gimple_phi_arg (@var{phi}, @var{i})
+Returns @var{i}th argument of @var{phi}@.
+@end defun
-@defmac PHI_ARG_EDGE (@var{phi}, @var{i})
+@defun gimple_phi_arg_edge (@var{phi}, @var{i})
Returns the incoming edge for the @var{i}th argument of @var{phi}.
-@end defmac
+@end defun
-@defmac PHI_ARG_DEF (@var{phi}, @var{i})
+@defun gimple_phi_arg_def (@var{phi}, @var{i})
Returns the @code{SSA_NAME} for the @var{i}th argument of @var{phi}.
-@end defmac
+@end defun
@subsection Preserving the SSA form