llvm::ISD::isVectorShrinkable

Return true if vector elements of N shrink to NewEltSize.

Synopsis

Declared in <llvm/CodeGen/SelectionDAGNodes.h>

bool
isVectorShrinkable(
    SDNode const* N,
    unsigned int NewEltSize,
    bool Signed);

Description

Returns true if the specified node is a vector where all elements can be truncated to the specified element size without a loss in meaning.

Return Value

True if elements can be truncated without loss of meaning.

Parameters

NameDescription
NNode to inspect.
NewEltSizeDestination element size in bits.
SignedWhether truncation is signed.