llvm::ISD::isConstantSplatVectorAllZeros

Return true if N is an all-zeros constant splat vector.

Synopsis

Declared in <llvm/CodeGen/SelectionDAGNodes.h>

bool
isConstantSplatVectorAllZeros(
    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

NameDescription
NNode to inspect.
BuildVectorOnlyWhen true, only accept BUILD_VECTOR nodes.