aboutsummaryrefslogtreecommitdiff
path: root/gcc/doc/tm.texi
diff options
context:
space:
mode:
authorAndrew Stubbs <ams@codesourcery.com>2022-08-05 13:28:50 +0100
committerAndrew Stubbs <ams@codesourcery.com>2022-08-30 15:50:17 +0100
commitf134a25ee8c29646f35f7e466109f6a7f5b9e824 (patch)
tree3cbbf9b4be50af4c2fcb724e0d2a879b210c4680 /gcc/doc/tm.texi
parent1025025b612d632920fe710bb58d36e4d43f3220 (diff)
downloadgcc-f134a25ee8c29646f35f7e466109f6a7f5b9e824.zip
gcc-f134a25ee8c29646f35f7e466109f6a7f5b9e824.tar.gz
gcc-f134a25ee8c29646f35f7e466109f6a7f5b9e824.tar.bz2
omp-simd-clone: Allow fixed-lane vectors
The vecsize_int/vecsize_float has an assumption that all arguments will use the same bitsize, and vary the number of lanes according to the element size, but this is inappropriate on targets where the number of lanes is fixed and the bitsize varies (i.e. amdgcn). With this change the vecsize can be left zero and the vectorization factor will be the same for all types. gcc/ChangeLog: * doc/tm.texi: Regenerate. * omp-simd-clone.cc (simd_clone_adjust_return_type): Allow zero vecsize. (simd_clone_adjust_argument_types): Likewise. * target.def (compute_vecsize_and_simdlen): Document the new vecsize_int and vecsize_float semantics.
Diffstat (limited to 'gcc/doc/tm.texi')
-rw-r--r--gcc/doc/tm.texi3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi
index 92bda1a..c3001c6 100644
--- a/gcc/doc/tm.texi
+++ b/gcc/doc/tm.texi
@@ -6253,6 +6253,9 @@ stores.
This hook should set @var{vecsize_mangle}, @var{vecsize_int}, @var{vecsize_float}
fields in @var{simd_clone} structure pointed by @var{clone_info} argument and also
@var{simdlen} field if it was previously 0.
+@var{vecsize_mangle} is a marker for the backend only. @var{vecsize_int} and
+@var{vecsize_float} should be left zero on targets where the number of lanes is
+not determined by the bitsize (in which case @var{simdlen} is always used).
The hook should return 0 if SIMD clones shouldn't be emitted,
or number of @var{vecsize_mangle} variants that should be emitted.
@end deftypefn