From 8b5d577caa32145b24acb948117f628a044028be Mon Sep 17 00:00:00 2001 From: Alfie Richards Date: Wed, 13 Aug 2025 20:13:28 +0000 Subject: [PATCH] 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. --- 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 981bb2dca0e..0d109391f0b 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 842ea1244c8..b2851908158 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("..."))} -- 2.47.3