ΒΆint getSplatIndex(ArrayRef<int> Mask)

Description

If all non-negative \p Mask elements are the same value, return that value. If all elements are negative (undefined) or \p Mask contains different non-negative values, return -1.

Declared at: llvm/include/llvm/Analysis/VectorUtils.h:354

Parameters

ArrayRef<int> Mask