LLVM API Documentation

llvm::BuildVectorSDNode Class Reference

#include <SelectionDAGNodes.h>

Inheritance diagram for llvm::BuildVectorSDNode:
[legend]
Collaboration diagram for llvm::BuildVectorSDNode:
[legend]

List of all members.

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)


Detailed Description

BuildVectorSDNode - A "pseudo-class" with methods for operating on BUILD_VECTORs.

Definition at line 1931 of file SelectionDAGNodes.h.


Member Function Documentation

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.

static bool llvm::BuildVectorSDNode::classof ( const SDNode *  N  )  [inline, static]

Reimplemented from llvm::SDNode.

Definition at line 1949 of file SelectionDAGNodes.h.

References llvm::ISD::BUILD_VECTOR, and llvm::SDNode::getOpcode().


The documentation for this class was generated from the following files: