ΒΆbool isConstantSplatVector(
const llvm::SDNode* N,
llvm::APInt& SplatValue)
bool isConstantSplatVector(
const llvm::SDNode* N,
llvm::APInt& SplatValue)
Description
If N is a BUILD_VECTOR node whose elements are all the same constant or undefined, return true and return the constant value in \p SplatValue.
Declared at: llvm/include/llvm/CodeGen/SelectionDAGNodes.h:89
Parameters
- const llvm::SDNode* N
- llvm::APInt& SplatValue