ΒΆllvm::ConstantSDNode* isConstOrConstSplat(
    llvm::SDValue N,
    bool AllowUndefs = false,
    bool AllowTruncation = false)

Description

Returns the SDNode if it is a constant splat BuildVector or constant int.

Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1702

Parameters

llvm::SDValue N
bool AllowUndefs = false
bool AllowTruncation = false