[VectorUtils] rename scaleShuffleMask to narrowShuffleMaskElts; NFC
authorSanjay Patel <spatel@rotateright.com>
Sat, 11 Apr 2020 14:05:49 +0000 (10:05 -0400)
committerSanjay Patel <spatel@rotateright.com>
Sat, 11 Apr 2020 14:05:49 +0000 (10:05 -0400)
commit1318ddbc14c28eee63df9cfe3ed92dca82557935
treee13355c78f4c44e3bc40f9ad942dbcfb270cffc5
parentadb456b8d32feaa65b2ea6f800ea55f5a3c3bcc7
[VectorUtils] rename scaleShuffleMask to narrowShuffleMaskElts; NFC

As proposed in D77881, we'll have the related widening operation,
so this name becomes too vague.

While here, change the function signature to take an 'int' rather
than 'size_t' for the scaling factor, add an assert for overflow of
32-bits, and improve the documentation comments.
llvm/include/llvm/Analysis/VectorUtils.h
llvm/lib/Analysis/VectorUtils.cpp
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/lib/Target/X86/X86InterleavedAccess.cpp
llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
llvm/unittests/Analysis/VectorUtilsTest.cpp