https://gcc.gnu.org/g:8b5d577caa32145b24acb948117f628a044028be
commit r16-4274-g8b5d577caa32145b24acb948117f628a044028be Author: Alfie Richards <[email protected]> Date: Wed Aug 13 20:13:28 2025 +0000 docs: Add documentation for TARGET_HAS_FMV_TARGET_ATTRIBUTE macro Adds documentation for the TARGET_HAS_FMV_TARGET_ATTRIBUTE macro hook. gcc/ChangeLog: * doc/tm.texi: Regenerate. * doc/tm.texi.in: Add documentation for TARGET_HAS_FMV_TARGET_ATTRIBUTE. Diff: --- gcc/doc/tm.texi | 10 ++++++++++ gcc/doc/tm.texi.in | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 981bb2dca0ea..0d109391f0b1 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -10925,6 +10925,16 @@ the function declaration to hold a pointer to a target-specific @code{struct cl_target_option} structure. @end deftypefn +@defmac TARGET_HAS_FMV_TARGET_ATTRIBUTE +Define this macro to zero to use @code{target_version} attributes for function +multiversioning (FMV) rather than @code{target} attributes. + +Targets using @code{target_version} attributes will also have +"target_version" FMV semantics, which allow for FMV sets defined across TU's +and using a combination of @code{target_version} and @code{target_clones} +attributed declarations in the definition of a FMV function set. +@end defmac + @defmac TARGET_CLONES_ATTR_SEPARATOR Define this char-typed macro to select a character that separates each target specific attributes from the @code{attribute(target_clones("..."))} diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index 842ea1244c89..b28519081587 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -7121,6 +7121,16 @@ on this implementation detail. @hook TARGET_OPTION_VALID_VERSION_ATTRIBUTE_P +@defmac TARGET_HAS_FMV_TARGET_ATTRIBUTE +Define this macro to zero to use @code{target_version} attributes for function +multiversioning (FMV) rather than @code{target} attributes. + +Targets using @code{target_version} attributes will also have +"target_version" FMV semantics, which allow for FMV sets defined across TU's +and using a combination of @code{target_version} and @code{target_clones} +attributed declarations in the definition of a FMV function set. +@end defmac + @defmac TARGET_CLONES_ATTR_SEPARATOR Define this char-typed macro to select a character that separates each target specific attributes from the @code{attribute(target_clones("..."))}
