Return true if N is an all-zeros constant splat vector.
Declared in <llvm/CodeGen/SelectionDAGNodes.h>
bool
isConstantSplatVectorAllZeros(
SDNode const* N,
bool BuildVectorOnly = false);
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.
True if all elements are 0 or undef.
| Name | Description |
|---|---|
| N | Node to inspect. |
| BuildVectorOnly | When true, only accept BUILD_VECTOR nodes. |