Commit 36066262 by Martin Liska Committed by Martin Liska

Update documentation of fndecl_built_in_p.

2018-08-28  Martin Liska  <mliska@suse.cz>

	* tree.h: Update documentation of fndecl_built_in_p
	functions.

From-SVN: r263907
parent a1ae0cbd
2018-08-28 Martin Liska <mliska@suse.cz>
* tree.h: Update documentation of fndecl_built_in_p
functions.
2018-08-27 Jeff Law <law@redhat.com> 2018-08-27 Jeff Law <law@redhat.com>
PR tree-optimization/87110 PR tree-optimization/87110
......
...@@ -5834,16 +5834,11 @@ type_has_mode_precision_p (const_tree t) ...@@ -5834,16 +5834,11 @@ type_has_mode_precision_p (const_tree t)
return known_eq (TYPE_PRECISION (t), GET_MODE_PRECISION (TYPE_MODE (t))); return known_eq (TYPE_PRECISION (t), GET_MODE_PRECISION (TYPE_MODE (t)));
} }
/* For a FUNCTION_DECL NODE, nonzero means a built in function of a /* Return true if a FUNCTION_DECL NODE is a GCC built-in function.
standard library or more generally a built in function that is
recognized by optimizers and expanders.
Note that it is different from the DECL_IS_BUILTIN accessor. For Note that it is different from the DECL_IS_BUILTIN accessor. For
instance, user declared prototypes of C library functions are not instance, user declared prototypes of C library functions are not
DECL_IS_BUILTIN but may be DECL_BUILT_IN. DECL_IS_BUILTIN but may be DECL_BUILT_IN. */
When a NULL argument is pass or tree code of the NODE is not FUNCTION_DECL
false is returned. */
inline bool inline bool
fndecl_built_in_p (const_tree node) fndecl_built_in_p (const_tree node)
...@@ -5851,8 +5846,8 @@ fndecl_built_in_p (const_tree node) ...@@ -5851,8 +5846,8 @@ fndecl_built_in_p (const_tree node)
return (DECL_BUILT_IN_CLASS (node) != NOT_BUILT_IN); return (DECL_BUILT_IN_CLASS (node) != NOT_BUILT_IN);
} }
/* For a FUNCTION_DECL NODE, return true when a function is /* Return true if a FUNCTION_DECL NODE is a GCC built-in function
a built-in of class KLASS. */ of class KLASS. */
inline bool inline bool
fndecl_built_in_p (const_tree node, built_in_class klass) fndecl_built_in_p (const_tree node, built_in_class klass)
...@@ -5860,8 +5855,8 @@ fndecl_built_in_p (const_tree node, built_in_class klass) ...@@ -5860,8 +5855,8 @@ fndecl_built_in_p (const_tree node, built_in_class klass)
return (fndecl_built_in_p (node) && DECL_BUILT_IN_CLASS (node) == klass); return (fndecl_built_in_p (node) && DECL_BUILT_IN_CLASS (node) == klass);
} }
/* For a FUNCTION_DECL NODE, return true when a function is /* Return true if a FUNCTION_DECL NODE is a GCC built-in function
a built-in of class KLASS with name equal to NAME. */ of class KLASS with name equal to NAME. */
inline bool inline bool
fndecl_built_in_p (const_tree node, int name, built_in_class klass) fndecl_built_in_p (const_tree node, int name, built_in_class klass)
...@@ -5869,8 +5864,8 @@ fndecl_built_in_p (const_tree node, int name, built_in_class klass) ...@@ -5869,8 +5864,8 @@ fndecl_built_in_p (const_tree node, int name, built_in_class klass)
return (fndecl_built_in_p (node, klass) && DECL_FUNCTION_CODE (node) == name); return (fndecl_built_in_p (node, klass) && DECL_FUNCTION_CODE (node) == name);
} }
/* For a FUNCTION_DECL NODE, return true when a function is /* Return true if a FUNCTION_DECL NODE is a GCC built-in function
a built-in of class BUILT_IN_NORMAL class with name equal to NAME. */ of BUILT_IN_NORMAL class with name equal to NAME. */
inline bool inline bool
fndecl_built_in_p (const_tree node, built_in_function name) fndecl_built_in_p (const_tree node, built_in_function name)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment