]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
docs: Add documentation for TARGET_HAS_FMV_TARGET_ATTRIBUTE macro
authorAlfie Richards <alfie.richards@arm.com>
Wed, 13 Aug 2025 20:13:28 +0000 (20:13 +0000)
committerAlfie Richards <alfie.richards@arm.com>
Tue, 7 Oct 2025 16:13:19 +0000 (16:13 +0000)
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
gcc/doc/tm.texi.in

index 981bb2dca0ea91894c25e1849a333921ab989914..0d109391f0b18d814db5551acc17dadedc9ad4d5 100644 (file)
@@ -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("..."))}
index 842ea1244c89c9174532eb517a244a8cd15abd2d..b285190815873d5b2b94846e2e9d26bb393f6d06 100644 (file)
@@ -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("..."))}