Maybe we can pass a scalar mode to the hook when we ask for
SCATTER/GATHER?  That might need fixups in other targets of course,
but it would make it clear what we're asking for?

How about an additional argument bool gather_scatter to make it more explicit?
Then we could just
if (gather_scatter)
  return true;

for every target but riscv.

I guess we're lucky that powerpc doesn't have gathers, though ;)

--
Regards
Robin

Reply via email to