]> git.ipfire.org Git - thirdparty/gcc.git/commit
vect: Add helper macros for gather/scatter.
authorRobin Dapp <rdapp@ventanamicro.com>
Thu, 3 Jul 2025 09:04:25 +0000 (11:04 +0200)
committerRobin Dapp <rdapp@ventanamicro.com>
Thu, 24 Jul 2025 14:12:39 +0000 (16:12 +0200)
commitd581d84f919cd269b1fd153d9af51eb9efd10d82
tree1e93ca9988b43ed530d2b13b017a4d4f752b390f
parenta901860c34ff8966b33f5729d7872a53b3bfa722
vect: Add helper macros for gather/scatter.

This encapsulates the IFN and the builtin-function way of handling
gather/scatter via three defines:

  GATHER_SCATTER_IFN_P
  GATHER_SCATTER_LEGACY_P
  GATHER_SCATTER_EMULATED_P

and introduces a helper define for SLP operand handling as well.

gcc/ChangeLog:

* tree-vect-slp.cc (GATHER_SCATTER_OFFSET): New define.
(vect_get_and_check_slp_defs): Use.
* tree-vectorizer.h (GATHER_SCATTER_LEGACY_P): New define.
(GATHER_SCATTER_IFN_P): Ditto.
(GATHER_SCATTER_EMULATED_P): Ditto.
* tree-vect-stmts.cc (vectorizable_store): Use.
(vectorizable_load): Use.
gcc/tree-vect-slp.cc
gcc/tree-vect-stmts.cc
gcc/tree-vectorizer.h