Allow targets to pick a vector prefix other than "V"
commit486626ef34c2e4585dadd12ccbeca8dd84e83436
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Jan 2018 21:43:17 +0000 (3 21:43 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Jan 2018 21:43:17 +0000 (3 21:43 +0000)
tree8c22889b700a21e7d4fe8da29c0d38b16c371d2c
parent8464736baadf3c4a106758d2598fc3d2cf438496
Allow targets to pick a vector prefix other than "V"

Originally the SVE port used the names for 256-bit vectors, as the
next available increment after Advanced SIMD.  However, that was
always a bit of a hack and is bound to confuse people new to the code.

Nothing actually requires vector modes to have names of the form
V<nunits><mode>, and after talking it over with the AArch64 maintainers,
we agreed to switch to things like:

    VNx16QI

instead.  This patch lets targets pick this kind of prefix.

2018-01-03  Richard Sandiford  <richard.sandiford@linaro.org>

gcc/
* machmode.def (VECTOR_MODES_WITH_PREFIX): Document.
* genmodes.c (VECTOR_MODES_WITH_PREFIX): New macro.
(VECTOR_MODES): Use it.
(make_vector_modes): Take the prefix as an argument.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@256203 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/genmodes.c
gcc/machmode.def