diff options
author | Matthew Gretton-Dann <matthew.gretton-dann@linaro.org> | 2013-05-02 13:44:34 +0000 |
---|---|---|
committer | Matthew Gretton-Dann <matthew.gretton-dann@linaro.org> | 2013-05-02 13:44:34 +0000 |
commit | b234a322d3353163978ff3e05d06ac163296f357 (patch) | |
tree | f92803deb3100e283c4a016266dc2cd3663407af /gcc/doc | |
parent | 12c433c86e6ddccfc9521d19096e403be0eb3905 (diff) |
Backport from trunk r198090,198136-198137,198142,198176.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/linaro/gcc-4_8-branch@198537 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/doc')
-rw-r--r-- | gcc/doc/tm.texi | 12 | ||||
-rw-r--r-- | gcc/doc/tm.texi.in | 7 |
2 files changed, 15 insertions, 4 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index cbbc82dfe39..5595532fc7b 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -10926,8 +10926,16 @@ Fold a call to a machine specific built-in function that was set up by @samp{TARGET_INIT_BUILTINS}. @var{fndecl} is the declaration of the built-in function. @var{n_args} is the number of arguments passed to the function; the arguments themselves are pointed to by @var{argp}. -The result is another tree containing a simplified expression for the -call's result. If @var{ignore} is true the value will be ignored. +The result is another tree, valid for both GIMPLE and GENERIC, +containing a simplified expression for the call's result. If +@var{ignore} is true the value will be ignored. +@end deftypefn + +@deftypefn {Target Hook} bool TARGET_GIMPLE_FOLD_BUILTIN (gimple_stmt_iterator *@var{gsi}) +Fold a call to a machine specific built-in function that was set up +by @samp{TARGET_INIT_BUILTINS}. @var{gsi} points to the gimple +statement holding the function call. Returns true if any change +was made to the GIMPLE stream. @end deftypefn @deftypefn {Target Hook} int TARGET_COMPARE_VERSION_PRIORITY (tree @var{decl1}, tree @var{decl2}) diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index dfba947f51b..ef2e4016ee7 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -10772,10 +10772,13 @@ Fold a call to a machine specific built-in function that was set up by @samp{TARGET_INIT_BUILTINS}. @var{fndecl} is the declaration of the built-in function. @var{n_args} is the number of arguments passed to the function; the arguments themselves are pointed to by @var{argp}. -The result is another tree containing a simplified expression for the -call's result. If @var{ignore} is true the value will be ignored. +The result is another tree, valid for both GIMPLE and GENERIC, +containing a simplified expression for the call's result. If +@var{ignore} is true the value will be ignored. @end deftypefn +@hook TARGET_GIMPLE_FOLD_BUILTIN + @hook TARGET_COMPARE_VERSION_PRIORITY This hook is used to compare the target attributes in two functions to determine which function's features get higher priority. This is used |