LLVM API Documentation
#include <SelectionDAGNodes.h>
Public Member Functions | |
| bool | isConstantSplat (APInt &SplatValue, APInt &SplatUndef, unsigned &SplatBitSize, bool &HasAnyUndefs, unsigned MinSplatBits=0) |
Static Public Member Functions | |
| static bool | classof (const BuildVectorSDNode *) |
| static bool | classof (const SDNode *N) |
Definition at line 1931 of file SelectionDAGNodes.h.
| bool BuildVectorSDNode::isConstantSplat | ( | APInt & | SplatValue, | |
| APInt & | SplatUndef, | |||
| unsigned & | SplatBitSize, | |||
| bool & | HasAnyUndefs, | |||
| unsigned | MinSplatBits = 0 | |||
| ) |
isConstantSplat - Check if this is a constant splat, and if so, find the smallest element size that splats the vector. If MinSplatBits is nonzero, the element size must be at least that large. Note that the splat element may be the entire vector (i.e., a one element vector). Returns the splat element value in SplatValue. Any undefined bits in that value are zero, and the corresponding bits in the SplatUndef mask are set. The SplatBitSize value is set to the splat element size in bits. HasAnyUndefs is set to true if any bits in the vector are undefined.
Definition at line 5722 of file SelectionDAG.cpp.
References llvm::APInt::getBitsSet(), llvm::SDNode::getNumOperands(), llvm::SDValue::getOpcode(), llvm::SDNode::getOperand(), llvm::EVT::getSizeInBits(), llvm::SDNode::getValueType(), llvm::EVT::getVectorElementType(), llvm::EVT::isVector(), llvm::ISD::UNDEF, and llvm::APInt::zextOrTrunc().
Referenced by llvm::ARM::getVMOVImm(), getVShiftImm(), llvm::PPC::isAllNegativeZeroVector(), LowerBUILD_VECTOR(), and LowerByteImmed().
| static bool llvm::BuildVectorSDNode::classof | ( | const BuildVectorSDNode * | ) | [inline, static] |
Definition at line 1948 of file SelectionDAGNodes.h.
Reimplemented from llvm::SDNode.
Definition at line 1949 of file SelectionDAGNodes.h.
References llvm::ISD::BUILD_VECTOR, and llvm::SDNode::getOpcode().