omp-simd-clone: Allow fixed-lane vectors
authorAndrew Stubbs <ams@codesourcery.com>
Fri, 5 Aug 2022 12:28:50 +0000 (13:28 +0100)
committerAndrew Stubbs <ams@codesourcery.com>
Tue, 30 Aug 2022 14:50:17 +0000 (15:50 +0100)
commitf134a25ee8c29646f35f7e466109f6a7f5b9e824
tree3cbbf9b4be50af4c2fcb724e0d2a879b210c4680
parent1025025b612d632920fe710bb58d36e4d43f3220
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.
gcc/doc/tm.texi
gcc/omp-simd-clone.cc
gcc/target.def