Return true if each element of V is poisoned or equal to the others.

Synopsis

Declared in <llvm/Analysis/VectorUtils.h>

bool
isSplatValue(
    Value const* V,
    int Index = ‐1,
    unsigned int Depth = 0);

Description

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.

Return Value

True if each element of V is poisoned or equal to the others.

Parameters

Name

Description

V

Vector value to test for a splat pattern.

Index

Optional demanded element index, or ‐1 for any element.

Depth

Recursion depth limit for the analysis.

Created with MrDocs