Return true if N is an all‐ones constant splat vector.

Synopsis

Declared in <llvm/CodeGen/SelectionDAGNodes.h>

bool
isConstantSplatVectorAllOnes(
    SDNode const* N,
    bool BuildVectorOnly = false);

Description

Return true if the specified node is a BUILD_VECTOR or SPLAT_VECTOR where all of the elements are ~0 or undef. If BuildVectorOnly is set to true, it only checks BUILD_VECTOR.

Return Value

True if all elements are ~0 or undef.

Parameters

Name

Description

N

Node to inspect.

BuildVectorOnly

When true, only accept BUILD_VECTOR nodes.

Created with MrDocs