ΒΆbool isSplatValue(const llvm::Value* V,
                  int Index = -1,
                  unsigned int Depth = 0)

Description

Return true if each element of the vector value \p V is poisoned or equal to every other non-poisoned element. If an index element is specified, either every element of the vector is poisoned or the element at that index is not poisoned and equal to every other non-poisoned element. This may be more powerful than the related getSplatValue() because it is not limited by finding a scalar source value to a splatted vector.

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

Parameters

const llvm::Value* V
int Index = -1
unsigned int Depth = 0